We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1acb0 commit f384d1cCopy full SHA for f384d1c
index.js
@@ -648,7 +648,7 @@ RedisClient.prototype.return_reply = function (reply) {
648
// If the "reply" here is actually a message received asynchronously due to a
649
// pubsub subscription, don't pop the command queue as we'll only be consuming
650
// the head command prematurely.
651
- if (Array.isArray(reply) && reply.length > 0 && reply[0]) {
+ if (this.pub_sub_mode && Array.isArray(reply) && reply.length > 0 && reply[0]) {
652
type = reply[0].toString();
653
}
654
0 commit comments