We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 582ac99 commit 208ae5dCopy full SHA for 208ae5d
lib/client/tracker.js
@@ -8,16 +8,15 @@ inherits(Tracker, EventEmitter)
8
function Tracker (client, announceUrl) {
9
var self = this
10
EventEmitter.call(self)
11
-
12
self.client = client
13
self.announceUrl = announceUrl
+
14
self.interval = null
15
self.destroyed = false
16
}
17
18
Tracker.prototype.setInterval = function (intervalMs) {
19
20
- if (self.interval) return
21
if (intervalMs == null) intervalMs = self.DEFAULT_ANNOUNCE_INTERVAL
22
23
clearInterval(self.interval)
0 commit comments