Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make Poller p local instead of implicitly global.

  • Loading branch information...
commit 72bea663969032652c1718f5426b1007184d1527 1 parent 940daa7
@coderunr coderunr authored
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.