You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
A little optimization in a function if the client is closing.
This commit is contained in:
4
index.js
4
index.js
@@ -178,12 +178,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