1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

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 a8ee9cdb13.
This commit is contained in:
Bryce Baril
2013-05-05 09:33:47 -07:00
parent 747cd1f10f
commit 19c918db51

View File

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