mirror of https://github.com/icedream/ts3bot.git
Adding silly logging for keep-alive reset.
parent
3538060002
commit
e2a05f73bf
|
@ -155,9 +155,14 @@ module.exports = class TS3ClientQuery extends EventEmitter
|
||||||
if @_keepaliveInt?
|
if @_keepaliveInt?
|
||||||
clearInterval @_keepaliveInt
|
clearInterval @_keepaliveInt
|
||||||
@_keepaliveInt = null
|
@_keepaliveInt = null
|
||||||
|
@_log.silly "Stopped keep-alive."
|
||||||
|
return
|
||||||
|
@_log.silly "Requested to stop keep-alive sending but it's already stopped!"
|
||||||
|
|
||||||
_resetKeepalive: () =>
|
_resetKeepalive: () =>
|
||||||
@_stopKeepalive()
|
@_stopKeepalive()
|
||||||
|
|
||||||
|
@_log.silly "Setting up keep-alive."
|
||||||
@_keepaliveInt = setInterval @_sendKeepalive, 60000
|
@_keepaliveInt = setInterval @_sendKeepalive, 60000
|
||||||
|
|
||||||
close: (cb) =>
|
close: (cb) =>
|
||||||
|
|
Loading…
Reference in New Issue