mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-14 07:59:31 +01:00
stop login timer on destroy
This commit is contained in:
parent
e411dafda7
commit
54ca916c85
@ -143,6 +143,8 @@ type DestroyClient struct {
|
|||||||
func (client *Client) Destroy() {
|
func (client *Client) Destroy() {
|
||||||
client.socket.Close()
|
client.socket.Close()
|
||||||
|
|
||||||
|
client.loginTimer.Stop()
|
||||||
|
|
||||||
if client.idleTimer != nil {
|
if client.idleTimer != nil {
|
||||||
client.idleTimer.Stop()
|
client.idleTimer.Stop()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user