mirror of https://github.com/quasar/Quasar.git
Bugfix with listen server
Added null check for keepalive timer callback to prevent server application from crashing when stopping the listen server when client(s) connect and initiate the keepalive timer
This commit is contained in:
parent
057ae503c0
commit
e64819673d
|
@ -207,10 +207,13 @@ private void KeepAliveCallback(object state)
|
|||
{
|
||||
KeepAlive keepAlive = (KeepAlive)state;
|
||||
|
||||
if (_keepAlives.Contains(keepAlive))
|
||||
if (_keepAlives != null)
|
||||
{
|
||||
keepAlive.Client.Disconnect();
|
||||
_keepAlives.Remove(keepAlive);
|
||||
if (_keepAlives.Contains(keepAlive))
|
||||
{
|
||||
keepAlive.Client.Disconnect();
|
||||
_keepAlives.Remove(keepAlive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue