mirror of https://github.com/icedream/ts3bot.git
Replace _keepaliveInt undefined check with an easier check.
parent
264f07cf9b
commit
6a68d5c2e8
|
@ -150,9 +150,9 @@ module.exports = class TS3ClientQuery extends EventEmitter
|
|||
@_tcpClient.write "\n\r", "utf8", () => cb?()
|
||||
|
||||
_stopKeepalive: () =>
|
||||
if @_keepaliveInt is not undefined
|
||||
if @_keepaliveInt?
|
||||
clearInterval @_keepaliveInt
|
||||
@_keepaliveInt = undefined
|
||||
@_keepaliveInt = null
|
||||
|
||||
_resetKeepalive: () =>
|
||||
@_stopKeepalive()
|
||||
|
|
Loading…
Reference in New Issue