You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Merge pull request #764 from Anubisss/master
A little optimization in a function if the client is closing.
This commit is contained in:
4
index.js
4
index.js
@@ -181,12 +181,12 @@ RedisClient.prototype.flush_and_error = function (message) {
|
||||
};
|
||||
|
||||
RedisClient.prototype.on_error = function (msg) {
|
||||
var message = "Redis connection to " + this.address + " failed - " + msg;
|
||||
|
||||
if (this.closing) {
|
||||
return;
|
||||
}
|
||||
|
||||
var message = "Redis connection to " + this.address + " failed - " + msg;
|
||||
|
||||
if (exports.debug_mode) {
|
||||
console.warn(message);
|
||||
}
|
||||
|
Reference in New Issue
Block a user