mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-13 19:22:05 +00:00
Clear afk timer when disconnecting
This commit is contained in:
parent
4937dca98e
commit
20f0d1c316
1 changed files with 1 additions and 0 deletions
1
user.js
1
user.js
|
|
@ -117,6 +117,7 @@ User.prototype.autoAFK = function () {
|
|||
|
||||
User.prototype.initCallbacks = function() {
|
||||
this.socket.on("disconnect", function() {
|
||||
this.awaytimer && clearTimeout(this.awaytimer);
|
||||
if(this.channel != null)
|
||||
this.channel.userLeave(this);
|
||||
}.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue