Browse Source

cleaning

pull/123/head
notgiven688 3 years ago
parent
commit
e6c7990543
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      server/Server/PoolConnection.cs

+ 3
- 3
server/Server/PoolConnection.cs View File

@ -283,9 +283,9 @@ namespace Server {
networkStream.EndRead (null);
} catch { }
connection.TcpClient.Close ();
connection.TcpClient.Client.Close ();
connection.ReceiveBuffer = null;
try { connection.TcpClient.Close ();} catch { }
try { connection.TcpClient.Client.Close ();} catch { }
try { connection.ReceiveBuffer = null;} catch { }
Connections.TryRemove(connection.Credentials);

Loading…
Cancel
Save