Browse files

fix timeout setting.

  • Loading branch information...
1 parent a731cbe commit 74caf00193761fcc7cb5ccabb90c5c89fd161010 @yosefd yosefd committed Mar 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/winston-mongodb.js
View
2 lib/winston-mongodb.js
@@ -34,7 +34,7 @@ var MongoDB = exports.MongoDB = function (options) {
this.timeout = options.timeout || 10000;
if (!(options.keepAlive === true)) {
this.keepAlive = false;
- if (!options.timeout) {
+ if (!options.timeout && options.keepAlive) {
// Backward compatibility for setting timeout via keepAlive.
this.timeout = options.keepAlive;
}

0 comments on commit 74caf00

Please sign in to comment.