Acturally stop keep alive packet timer

This commit is contained in:
Bluzume 2021-11-07 05:28:29 -05:00
parent a383a67b4b
commit d32ce1c73f

View file

@ -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();
}
} }