Adding silly logging for keep-alive reset.

develop
Icedream 2016-04-09 17:06:41 +02:00
parent 3538060002
commit e2a05f73bf
1 changed files with 5 additions and 0 deletions

View File

@ -155,9 +155,14 @@ module.exports = class TS3ClientQuery extends EventEmitter
if @_keepaliveInt?
clearInterval @_keepaliveInt
@_keepaliveInt = null
@_log.silly "Stopped keep-alive."
return
@_log.silly "Requested to stop keep-alive sending but it's already stopped!"
_resetKeepalive: () =>
@_stopKeepalive()
@_log.silly "Setting up keep-alive."
@_keepaliveInt = setInterval @_sendKeepalive, 60000
close: (cb) =>