diff --git a/lib/torrent.js b/lib/torrent.js index 579f3daa..0b695561 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()