Skip to content
Browse files

Make Poller p local instead of implicitly global.

  • Loading branch information...
1 parent 940daa7 commit 72bea663969032652c1718f5426b1007184d1527 @coderunr coderunr committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/monitor.js
View
2 lib/monitor.js
@@ -104,7 +104,7 @@ Monitor.prototype.pollCheck = function(check, callback) {
// change lastTested date right away to avoid polling twice if the target doesn't answer in timely fashion
this.declarePoll(check, function(err) { });
var Poller = require('./pollers/' + (check.type || 'http'));
- p = new Poller(check.url, this.config.timeout, function(err, time) {
+ var p = new Poller(check.url, this.config.timeout, function(err, time) {
self.createPing(check, err, Date.now(), time, callback);
});
if ('setUserAgent' in p) {

0 comments on commit 72bea66

Please sign in to comment.
Something went wrong with that request. Please try again.