Browse files

allow 0 resolution for 'off'

  • Loading branch information...
1 parent d3b2187 commit 7cd4b1352dde0c94005ea657f7d2584ff9449b16 @dannycoates committed Jun 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/endpoint.js
View
2 lib/endpoint.js
@@ -41,7 +41,7 @@ module.exports = function (inherits, EventEmitter) {
this.failures = 0
this.timeout = options.timeout || (60 * 1000)
- this.resolution = options.resolution || 1000
+ this.resolution = (options.resolution === 0) ? 0 : options.resolution || 1000
this.timeoutInterval = (this.resolution > 0) ?
setInterval(this.checkTimeouts.bind(this), this.resolution) :

0 comments on commit 7cd4b13

Please sign in to comment.