From 64a0e689278d0d2621445420d814ad13f39f925f Mon Sep 17 00:00:00 2001 From: Brian Noguchi Date: Mon, 12 Mar 2012 23:03:46 -0700 Subject: [PATCH] Add fix for last test (re-establish pub_sub_mode = true) --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index eb27628b97..1ace00ed0c 100644 --- a/index.js +++ b/index.js @@ -570,6 +570,8 @@ RedisClient.prototype.return_reply = function (reply) { if (this.debug_mode) { console.log("All subscriptions removed, exiting pub/sub mode"); } + } else { + this.pub_sub_mode = true; } // subscribe commands take an optional callback and also emit an event, but only the first response is included in the callback // TODO - document this or fix it so it works in a more obvious way