You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Merge branch 'master' of https://github.com/ouotuo/node_redis into ouotuo-master
This commit is contained in:
8
index.js
8
index.js
@@ -916,6 +916,14 @@ RedisClient.prototype.pub_sub_command = function (command_obj) {
|
||||
|
||||
RedisClient.prototype.end = function () {
|
||||
this.stream._events = {};
|
||||
|
||||
//clear retry_timer
|
||||
if(this.retry_timer){
|
||||
clearTimeout(this.retry_timer);
|
||||
this.retry_timer=null;
|
||||
}
|
||||
this.stream.on("error", function(){});
|
||||
|
||||
this.connected = false;
|
||||
this.ready = false;
|
||||
this.closing = true;
|
||||
|
Reference in New Issue
Block a user