Skip to content

Commit

Permalink
Mark clients with closed connections as unusable consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
charmander committed Nov 15, 2017
1 parent 4c58e3f commit 85969ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Expand Up @@ -208,10 +208,10 @@ Client.prototype.connect = function (callback) {
if (callback) {
callback(error)
} else {
this.emit('error', error)
connectedErrorHandler(error)
}
} else if (!this._connectionError) {
this.emit('error', error)
connectedErrorHandler(error)
}
}
this.emit('end')
Expand Down

0 comments on commit 85969ea

Please sign in to comment.