You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
reset subscriptions when the connection is broken
This commit is contained in:
1
index.js
1
index.js
@@ -417,6 +417,7 @@ RedisClient.prototype.connection_gone = function (why) {
|
||||
console.warn("Redis connection is gone from " + why + " event.");
|
||||
}
|
||||
self.connected = false;
|
||||
self.subscriptions = false;
|
||||
self.emit("end");
|
||||
self.command_queue.forEach(function (args) {
|
||||
if (typeof args[2] === "function") {
|
||||
|
Reference in New Issue
Block a user