From f384d1c774d39090b9634502b230d7c29819135b Mon Sep 17 00:00:00 2001 From: Raymond Myers Date: Wed, 1 Apr 2015 00:10:23 -0700 Subject: [PATCH] Fixed the pub/sub logic accidentally stringing the first value of a multi/exec response --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index abee2973b7..399ebf2259 100644 --- a/index.js +++ b/index.js @@ -648,7 +648,7 @@ RedisClient.prototype.return_reply = function (reply) { // If the "reply" here is actually a message received asynchronously due to a // pubsub subscription, don't pop the command queue as we'll only be consuming // the head command prematurely. - if (Array.isArray(reply) && reply.length > 0 && reply[0]) { + if (this.pub_sub_mode && Array.isArray(reply) && reply.length > 0 && reply[0]) { type = reply[0].toString(); }