From 208ae5d9115a411e0c4cf06befafecbe8f961822 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 4 Dec 2015 23:59:11 -0800 Subject: [PATCH] calling tracker.setInterval() should override current interval --- lib/client/tracker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/client/tracker.js b/lib/client/tracker.js index 889d072..eb8b14d 100644 --- a/lib/client/tracker.js +++ b/lib/client/tracker.js @@ -8,16 +8,15 @@ inherits(Tracker, EventEmitter) function Tracker (client, announceUrl) { var self = this EventEmitter.call(self) - self.client = client self.announceUrl = announceUrl + self.interval = null self.destroyed = false } Tracker.prototype.setInterval = function (intervalMs) { var self = this - if (self.interval) return if (intervalMs == null) intervalMs = self.DEFAULT_ANNOUNCE_INTERVAL clearInterval(self.interval)