From 993052c57a917e08b6cdb852db8c59aa11a93a42 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 16 Nov 2004 06:21:33 +0000 Subject: [PATCH] Closing a socket descriptor from the clietn dialog no longer decrements the socket counter directly (the server must do this when it closes it's copy of the socket descriptor). --- src/sbbs3/ctrl/ClientFormUnit.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sbbs3/ctrl/ClientFormUnit.cpp b/src/sbbs3/ctrl/ClientFormUnit.cpp index c28ee75369..64130d008c 100644 --- a/src/sbbs3/ctrl/ClientFormUnit.cpp +++ b/src/sbbs3/ctrl/ClientFormUnit.cpp @@ -92,8 +92,7 @@ void __fastcall TClientForm::CloseSocketMenuItemClick(TObject *Sender) State << isSelected; while(ListItem!=NULL) { - if(closesocket(atoi(ListItem->Caption.c_str()))==0) - socket_open(NULL, FALSE); + closesocket(atoi(ListItem->Caption.c_str())); ListItem=ListView->GetNextItem(ListItem,sdAll,State); } } -- GitLab