Skip to content

Commit 12265a5

Browse files
benglBridgeAR
authored andcommitted
Remove clientError handler
This event is never emitted on net.Socket or tls.TLSSocket streams in any of the supported versions of Node.js.
1 parent 50b4009 commit 12265a5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,6 @@ RedisClient.prototype.create_stream = function () {
283283
self.on_error(err);
284284
});
285285

286-
/* istanbul ignore next: difficult to test and not important as long as we keep this listener */
287-
this.stream.on('clientError', function (err) {
288-
debug('clientError occured');
289-
self.on_error(err);
290-
});
291-
292286
this.stream.once('close', function (hadError) {
293287
self.connection_gone('close');
294288
});

0 commit comments

Comments
 (0)