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
|
||||
|
||||
close: (cb) =>
|
||||
@_stopKeepalive()
|
||||
if not @_tcpClient
|
||||
cb?()
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue