Disable keepalive if we disconnect the socket

This commit is contained in:
lilia 2015-08-31 11:41:44 -07:00
parent 9e9d767a30
commit 78956ede2f
2 changed files with 2 additions and 0 deletions

View file

@ -185,6 +185,7 @@
if (this.disconnect) {
// automatically disconnect if server doesn't ack
this.disconnectTimer = setTimeout(function() {
clearTimeout(this.keepAliveTimer);
this.wsr.close(3001, 'No response to keepalive request');
}.bind(this), 1000);
} else {