From 5a56d0fa03089afa61494f4d82d74034c61545ff Mon Sep 17 00:00:00 2001 From: Tim-Smart Date: Fri, 17 Sep 2010 23:13:29 +1200 Subject: [PATCH 1/2] client::close method --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index c692358a35..b7fe8ce424 100644 --- a/index.js +++ b/index.js @@ -477,6 +477,11 @@ RedisClient.prototype.send_command = function () { } }; +RedisClient.prototype.close = function close () { + this.stream._events = {}; + return this.stream.end(); +}; + // http://code.google.com/p/redis/wiki/CommandReference exports.commands = [ // Commands operating on all value types From b7bb32940e2064c455a78edec1edf7e6d57f82b0 Mon Sep 17 00:00:00 2001 From: Tim-Smart Date: Fri, 17 Sep 2010 23:18:57 +1200 Subject: [PATCH 2/2] s/close/end/ --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b7fe8ce424..18e14a2d22 100644 --- a/index.js +++ b/index.js @@ -477,7 +477,7 @@ RedisClient.prototype.send_command = function () { } }; -RedisClient.prototype.close = function close () { +RedisClient.prototype.end = function () { this.stream._events = {}; return this.stream.end(); };