diff --git a/lib/client.js b/lib/client.js index cca5e66e8..370630a02 100644 --- a/lib/client.js +++ b/lib/client.js @@ -251,6 +251,7 @@ Client.prototype._connect = function (callback) { ? new Error('Connection terminated') : new Error('Connection terminated unexpectedly') + clearTimeout(connectionTimeoutHandle) this._errorAllQueries(error) if (!this._ending) {