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

Add fix for last test (re-establish pub_sub_mode = true)

This commit is contained in:
Brian Noguchi
2012-03-12 23:03:46 -07:00
parent 2afa0e5acc
commit 64a0e68927

View File

@@ -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