From 6a68d5c2e89cfac36a07b3d574620c69d47024b1 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Sat, 9 Apr 2016 16:50:06 +0200 Subject: [PATCH] Replace _keepaliveInt undefined check with an easier check. --- ts3query.iced | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts3query.iced b/ts3query.iced index c80c6de..599fc36 100644 --- a/ts3query.iced +++ b/ts3query.iced @@ -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()