mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Acturally stop keep alive packet timer
This commit is contained in:
parent
a383a67b4b
commit
d32ce1c73f
1 changed files with 7 additions and 2 deletions
|
@ -114,6 +114,8 @@ namespace HISP.Server
|
||||||
// Stop Timers
|
// Stop Timers
|
||||||
if (timeoutTimer != null)
|
if (timeoutTimer != null)
|
||||||
timeoutTimer.Dispose();
|
timeoutTimer.Dispose();
|
||||||
|
if (keepAliveTimer != null)
|
||||||
|
keepAliveTimer.Dispose();
|
||||||
if (warnTimer != null)
|
if (warnTimer != null)
|
||||||
warnTimer.Dispose();
|
warnTimer.Dispose();
|
||||||
if (kickTimer != null)
|
if (kickTimer != null)
|
||||||
|
@ -126,8 +128,11 @@ namespace HISP.Server
|
||||||
LoggedIn = false;
|
LoggedIn = false;
|
||||||
|
|
||||||
// Close Socket
|
// Close Socket
|
||||||
ClientSocket.Close();
|
if(ClientSocket != null)
|
||||||
ClientSocket.Dispose();
|
{
|
||||||
|
ClientSocket.Close();
|
||||||
|
ClientSocket.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue