We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747cd1f commit 19c918dCopy full SHA for 19c918d
index.js
@@ -857,14 +857,12 @@ RedisClient.prototype.pub_sub_command = function (command_obj) {
857
}
858
};
859
860
-// Warning! end() has been deprecated and will go away
861
-// in later versions of this client. Please consider switching to
862
-// quit() everywhere you use end.
863
RedisClient.prototype.end = function () {
864
- if (exports.debug_mode) {
865
- console.log("Using deprecated .end() method!");
866
- }
867
- return this.quit();
+ this.stream._events = {};
+ this.connected = false;
+ this.ready = false;
+ this.closing = true;
+ return this.stream.end();
868
869
870
function Multi(client, args) {
0 commit comments