Skip to content
Snippets Groups Projects
Commit 993052c5 authored by rswindell's avatar rswindell
Browse files

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).
parent 26413c6e
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,7 @@ void __fastcall TClientForm::CloseSocketMenuItemClick(TObject *Sender) ...@@ -92,8 +92,7 @@ void __fastcall TClientForm::CloseSocketMenuItemClick(TObject *Sender)
State << isSelected; State << isSelected;
while(ListItem!=NULL) { while(ListItem!=NULL) {
if(closesocket(atoi(ListItem->Caption.c_str()))==0) closesocket(atoi(ListItem->Caption.c_str()));
socket_open(NULL, FALSE);
ListItem=ListView->GetNextItem(ListItem,sdAll,State); ListItem=ListView->GetNextItem(ListItem,sdAll,State);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment