From e7099717aa12ed624df79299f576566acf717ea3 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Mon, 15 Oct 2012 11:02:04 -0700 Subject: [PATCH] Don't bind the RedisClient to the domain; callback should suffice. --- index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.js b/index.js index cfe321ce8a..3867f79555 100644 --- a/index.js +++ b/index.js @@ -755,11 +755,7 @@ RedisClient.prototype.send_command = function (command, args, callback) { throw new Error("send_command: second argument must be an array"); } - if (callback && process.domain) { - callback = process.domain.bind(callback); - // ensure that any unhandled error events emitted by the client are scoped to the correct domain - process.domain.add(this); - } + if (callback && process.domain) callback = process.domain.bind(callback); // if the last argument is an array and command is sadd or srem, expand it out: // client.sadd(arg1, [arg2, arg3, arg4], cb);