Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js6
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()