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

Bug fix for monitor mode. (forddg)

Also some whitespace fix for JSHint.
This commit is contained in:
Matt Ranney
2011-06-12 14:35:21 -10:00
parent 3d36711563
commit 4b988bdb60

View File

@@ -392,7 +392,7 @@ RedisClient.prototype.return_reply = function (reply) {
} else if (exports.debug_mode) {
console.log("no callback for reply: " + (reply && reply.toString && reply.toString()));
}
} else if (this.subscriptions || command_obj.sub_command) {
} else if (this.subscriptions || (command_obj && command_obj.sub_command)) {
if (Array.isArray(reply)) {
type = reply[0].toString();