Skip to content

Commit

Permalink
Revert "Deprecate end() by having it call quit() instead. Marked for …
Browse files Browse the repository at this point in the history
…eventual removal. Fixes redis#419"

A hard client-side quit is useful for test purposes, and some other rare use cases.

This reverts commit a8ee9cd.
  • Loading branch information
brycebaril committed May 5, 2013
1 parent 747cd1f commit 19c918d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 19c918d

Please sign in to comment.