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

fixed redis quit,we call client.end(),remove "error" event listener,the retry_timer try to connect;when there is a "error" exception,the process will exit

This commit is contained in:
linkangzhen
2014-05-27 09:01:28 +08:00
parent c68b3f7bd3
commit 1c983a1171

View File

@@ -908,6 +908,14 @@ RedisClient.prototype.pub_sub_command = function (command_obj) {
RedisClient.prototype.end = function () {
this.stream._events = {};
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;