From 98e27c43dd7caf5344cfac9427cae493251ba165 Mon Sep 17 00:00:00 2001 From: Orion Henry Date: Mon, 27 Sep 2010 17:23:23 -0700 Subject: [PATCH] reset subscriptions when the connection is broken --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index c091f17628..c8210e5875 100644 --- a/index.js +++ b/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") {