diff --git a/lib/torrent.js b/lib/torrent.js index a7253f66..b22800b3 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -72,6 +72,7 @@ function Torrent (torrentId, client, opts) { this.announce = opts.announce this.urlList = opts.urlList + this.discoveryIntervalMs = opts.discoveryIntervalMs this.path = opts.path this.skipVerify = !!opts.skipVerify @@ -339,7 +340,8 @@ Torrent.prototype._onListening = function () { dht: !self.private && self.client.dht, tracker: trackerOpts, port: self.client.torrentPort, - userAgent: USER_AGENT + userAgent: USER_AGENT, + intervalMs: self.discoveryIntervalMs }) self.discovery.on('error', onError)