You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Remove clientError handler
This event is never emitted on net.Socket or tls.TLSSocket streams in any of the supported versions of Node.js.
This commit is contained in:
committed by
Ruben Bridgewater
parent
50b4009005
commit
12265a5079
6
index.js
6
index.js
@@ -283,12 +283,6 @@ RedisClient.prototype.create_stream = function () {
|
|||||||
self.on_error(err);
|
self.on_error(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* istanbul ignore next: difficult to test and not important as long as we keep this listener */
|
|
||||||
this.stream.on('clientError', function (err) {
|
|
||||||
debug('clientError occured');
|
|
||||||
self.on_error(err);
|
|
||||||
});
|
|
||||||
|
|
||||||
this.stream.once('close', function (hadError) {
|
this.stream.once('close', function (hadError) {
|
||||||
self.connection_gone('close');
|
self.connection_gone('close');
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user