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) {