ts3query: Stop keepalive thread when closing connection.

develop
Icedream 2016-04-08 19:43:19 +02:00
parent 92c66a6bbc
commit b4e88ad54b
1 changed files with 1 additions and 0 deletions

View File

@ -157,6 +157,7 @@ module.exports = class TS3ClientQuery extends EventEmitter
@_keepaliveInt = setInterval @_sendKeepalive, 60000 @_keepaliveInt = setInterval @_sendKeepalive, 60000
close: (cb) => close: (cb) =>
@_stopKeepalive()
if not @_tcpClient if not @_tcpClient
cb?() cb?()
return return