mirror of https://github.com/icedream/ts3bot.git
ts3query: Stop keepalive thread when closing connection.
parent
92c66a6bbc
commit
b4e88ad54b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue