You've already forked node-redis
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:
1
index.js
1
index.js
@@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user