Skip to content

Commit cc93e0b

Browse files
committed
Fix return_buffers in pub/sub mode (#911)
1 parent 2cc01f5 commit cc93e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ RedisClient.prototype.return_reply = function (reply) {
645645
}
646646
} else if (this.pub_sub_mode || command_obj && command_obj.sub_command) {
647647
if (Array.isArray(reply)) {
648-
if (!command_obj || command_obj.buffer_args === false) {
648+
if ((!command_obj || command_obj.buffer_args === false) && !this.options.return_buffers) {
649649
reply = utils.reply_to_strings(reply);
650650
}
651651
type = reply[0].toString();

0 commit comments

Comments
 (0)