You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
Fixed the pub/sub logic accidentally stringing the first value of a multi/exec response
This commit is contained in:
2
index.js
2
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
|
// 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
|
// pubsub subscription, don't pop the command queue as we'll only be consuming
|
||||||
// the head command prematurely.
|
// 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();
|
type = reply[0].toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user