1
0
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:
Benjamin E. Coe
2015-08-29 14:16:30 -07:00

View File

@@ -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);
}