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

index.js: fix enable_offline_queue default. tests pass

This commit is contained in:
DTrejo
2012-07-05 19:18:26 -07:00
parent a532e65ccf
commit 1b0b2dc87d
2 changed files with 8 additions and 1 deletions

View File

@@ -50,7 +50,11 @@ function RedisClient(stream, options) {
if (options.connect_timeout && !isNaN(options.connect_timeout) && options.connect_timeout > 0) {
this.connect_timeout = +options.connect_timeout;
}
this.enable_offline_queue = this.options.enable_offline_queue || true;
this.enable_offline_queue = true;
if (typeof this.options.enable_offline_queue === "boolean") {
this.enable_offline_queue = this.options.enable_offline_queue;
}
this.initialize_retry_vars();
this.pub_sub_mode = false;