ts3query: Stop sending keepalives on connection errors.

develop
Icedream 2016-04-08 19:44:59 +02:00
parent b4e88ad54b
commit 3948c767e9
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ module.exports = class TS3ClientQuery extends EventEmitter
@_tcpClient.on "close", () => @emit "close"
@_tcpClient.on "error", (err) =>
@_log.warn "Connection error", err
@_stopKeepalive()
@_tcpClient = null
@emit "error", err