|
@@ -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);
|
|
|