Replace _keepaliveInt undefined check with an easier check.

develop
Icedream 2016-04-09 16:50:06 +02:00
parent 264f07cf9b
commit 6a68d5c2e8
1 changed files with 2 additions and 2 deletions

View File

@ -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()