Merge pull request #3 from notgiven688/aeon_pow_change

Minor changes
This commit is contained in:
notgiven688 2018-04-04 08:26:01 +02:00 committed by GitHub
commit 8cce05750f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -283,11 +283,11 @@ 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 { }
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;