1
0
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:
Bryan English
2018-07-17 20:48:48 -07:00
committed by Ruben Bridgewater
parent 50b4009005
commit 12265a5079

View File

@@ -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');
}); });