Browse Source

issues #11

tags/2.3
canbingzt 10 years ago
parent
commit
055424cc2e
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      shadowsocks-csharp/Local.cs

+ 5
- 0
shadowsocks-csharp/Local.cs View File

@@ -54,6 +54,11 @@ namespace shadowsocks_csharp
// Get the socket that handles the client request. // Get the socket that handles the client request.
Socket listener = (Socket)ar.AsyncState; Socket listener = (Socket)ar.AsyncState;
if (!listener.Connected)
{
return;
}
listener.BeginAccept( listener.BeginAccept(
new AsyncCallback(AcceptCallback), new AsyncCallback(AcceptCallback),
listener); listener);


Loading…
Cancel
Save