diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index 579f3da..0b69556 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -1093,8 +1093,10 @@ Torrent.prototype._onWireWithMetadata = function (wire) { wire.port(self.client.dht.address().port) } - timeoutId = setTimeout(onChokeTimeout, CHOKE_TIMEOUT) - if (timeoutId.unref) timeoutId.unref() + if (wire.type !== 'webSeed') { // do not choke on webseeds + timeoutId = setTimeout(onChokeTimeout, CHOKE_TIMEOUT) + if (timeoutId.unref) timeoutId.unref() + } wire.isSeeder = false updateSeedStatus() |