From a9626578df235953dd01839cdc1d3e63a044e911 Mon Sep 17 00:00:00 2001 From: Richard Mok Date: Thu, 11 Oct 2012 16:07:36 +0800 Subject: [PATCH] RedisClient.prototype.end function bug fixed. An uncaught exception will be raised when the retry timer tries to reconnect and encounter an error, for all event listeners of the stream were removed in line 826. It should set closing varable to be true. --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 8ef3f9e..6832b4b 100644 --- a/index.js +++ b/index.js @@ -826,6 +826,7 @@ RedisClient.prototype.end = function () { this.stream._events = {}; this.connected = false; this.ready = false; + this.closing = true; return this.stream.end(); };