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

Formatting

This commit is contained in:
Bryce Baril
2013-10-02 22:12:56 -07:00
parent a4f266684e
commit d5c7a2ce2e

View File

@@ -478,11 +478,12 @@ RedisClient.prototype.connection_gone = function (why) {
} }
return; return;
} }
if (this.retry_max_delay !== null && (this.retry_delay * this.retry_backoff) > this.retry_max_delay) { var nextDelay = Math.floor(this.retry_delay * this.retry_backoff);
if (this.retry_max_delay !== null && nextDelay > this.retry_max_delay) {
this.retry_delay = this.retry_max_delay; this.retry_delay = this.retry_max_delay;
} else { } else {
this.retry_delay = Math.floor(this.retry_delay * this.retry_backoff); this.retry_delay = nextDelay;
} }
if (exports.debug_mode) { if (exports.debug_mode) {