From 12265a5079a133d2003bef9cdb0f2deee0251518 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Tue, 17 Jul 2018 20:48:48 -0700 Subject: [PATCH] Remove clientError handler This event is never emitted on net.Socket or tls.TLSSocket streams in any of the supported versions of Node.js. --- index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/index.js b/index.js index ae0848cd62..c43203a7f6 100644 --- a/index.js +++ b/index.js @@ -283,12 +283,6 @@ RedisClient.prototype.create_stream = function () { 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) { self.connection_gone('close'); });