private void CloseSocket(Socket socket)
 {
     SocketManager.CloseSocket(socket);
     NetworkingStatisticsGroup.OnClosedGatewayDuplexSocket();
     if (Interlocked.Decrement(ref this.connectedCount) == 0)
     {
         MsgCenter.OnGatewayConnectionClosed();
     }
 }
Example #2
0
 private void CloseSocket(Socket socket)
 {
     SocketManager.CloseSocket(socket);
     NetworkingStatisticsGroup.OnClosedGatewayDuplexSocket();
     MsgCenter.OnGatewayConnectionClosed();
 }