From 19c918db51a76ceebdae5f58c2d89d25809737bb Mon Sep 17 00:00:00 2001 From: Bryce Baril Date: Sun, 5 May 2013 09:33:47 -0700 Subject: [PATCH] Revert "Deprecate end() by having it call quit() instead. Marked for eventual removal. Fixes #419" A hard client-side quit is useful for test purposes, and some other rare use cases. This reverts commit a8ee9cdb13d6358767184b810d42a7a011ea7e47. --- index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 4bb2891b80..4ae92fe6c8 100644 --- a/index.js +++ b/index.js @@ -857,14 +857,12 @@ RedisClient.prototype.pub_sub_command = function (command_obj) { } }; -// Warning! end() has been deprecated and will go away -// in later versions of this client. Please consider switching to -// quit() everywhere you use end. RedisClient.prototype.end = function () { - if (exports.debug_mode) { - console.log("Using deprecated .end() method!"); - } - return this.quit(); + this.stream._events = {}; + this.connected = false; + this.ready = false; + this.closing = true; + return this.stream.end(); }; function Multi(client, args) {