ensure the nick timeout mechanism is cleaned up on client quit

This commit is contained in:
Shivaram Lingamneni
2018-02-28 00:14:44 -05:00
parent a5897baa2b
commit 945dec9964
2 changed files with 20 additions and 3 deletions
+2 -3
View File
@@ -686,9 +686,8 @@ func (client *Client) destroy(beingResumed bool) {
}
// clean up self
if client.idletimer != nil {
client.idletimer.Stop()
}
client.idletimer.Stop()
client.nickTimer.Stop()
client.server.accounts.Logout(client)