Skip to content

Commit 85969ea

Browse files
committed
Mark clients with closed connections as unusable consistently
1 parent 4c58e3f commit 85969ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/client.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,10 @@ Client.prototype.connect = function (callback) {
208208
if (callback) {
209209
callback(error)
210210
} else {
211-
this.emit('error', error)
211+
connectedErrorHandler(error)
212212
}
213213
} else if (!this._connectionError) {
214-
this.emit('error', error)
214+
connectedErrorHandler(error)
215215
}
216216
}
217217
this.emit('end')

0 commit comments

Comments
 (0)