mirror of https://github.com/icedream/ts3bot.git
ts3query: Stop sending keepalives on connection errors.
parent
b4e88ad54b
commit
3948c767e9
|
@ -111,6 +111,7 @@ module.exports = class TS3ClientQuery extends EventEmitter
|
||||||
@_tcpClient.on "close", () => @emit "close"
|
@_tcpClient.on "close", () => @emit "close"
|
||||||
@_tcpClient.on "error", (err) =>
|
@_tcpClient.on "error", (err) =>
|
||||||
@_log.warn "Connection error", err
|
@_log.warn "Connection error", err
|
||||||
|
@_stopKeepalive()
|
||||||
@_tcpClient = null
|
@_tcpClient = null
|
||||||
@emit "error", err
|
@emit "error", err
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue