1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

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.
This commit is contained in:
Richard Mok
2012-10-11 16:07:36 +08:00
parent 252a77e92a
commit a9626578df

View File

@@ -826,6 +826,7 @@ RedisClient.prototype.end = function () {
this.stream._events = {}; this.stream._events = {};
this.connected = false; this.connected = false;
this.ready = false; this.ready = false;
this.closing = true;
return this.stream.end(); return this.stream.end();
}; };