Browse Source

cleaning

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

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

@ -287,7 +287,7 @@ namespace Server {
connection.TcpClient.Client.Close ();
connection.ReceiveBuffer = null;
try { PoolConnection dummy; Connections.TryRemove (connection.Credentials, out dummy); } catch { }
Connections.TryRemove(connection.Credentials);
Console.WriteLine ("{0}: closed a pool connection.", client.WebSocket.ConnectionInfo.Id);
@ -314,7 +314,7 @@ namespace Server {
try { connection.TcpClient.Close (); } catch { }
try { connection.TcpClient.Client.Close (); } catch { }
try { connection.ReceiveBuffer = null; } catch { }
connection.ReceiveBuffer = null;
connection.LastInteraction = DateTime.Now;

Loading…
Cancel
Save