Build heartbeat chain
This commit is contained in:
1 parent
909718d8d5
commit
f946ebef1e
5 files changed
+173
-122
No files matched your search
@@ -26,7 +26,6 @@ namespace Mistox.Server {
|
||||
_client.NoDelay = true;
|
||||
_client.ReceiveTimeout = _parent.ConnectionTimeoutSeconds * 1000;
|
||||
|
||||
_parent.InvokeUserConnected( this );
|
||||
// Start the receive thread
|
||||
Task.Run(ReceiveThread);
|
||||
}
|
||||
@@ -93,7 +92,6 @@ namespace Mistox.Server {
|
||||
_sendLock.Dispose();
|
||||
_cts.Dispose();
|
||||
|
||||
_parent.Connections.TryRemove(UserName, out _);
|
||||
_parent.InvokeUserDisconnected(this);
|
||||
// Remove this item from the Dictionary on the Server for garbage collection
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user