Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not choke on web seeds #972

Merged
merged 3 commits into from Nov 27, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Prev

No need to check for webSeed in onChokeTimeout

as the timeout is never set for webSeeds now
  • Loading branch information
gpetrov committed Nov 27, 2016
commit 7ad2f4c077cda0c67329693c5a06ddcb637b1554
@@ -1026,7 +1026,7 @@ Torrent.prototype._onWireWithMetadata = function (wire) {
var timeoutId = null

function onChokeTimeout () {
if (self.destroyed || wire.destroyed || wire.type === 'webSeed') return
if (self.destroyed || wire.destroyed) return

if (self._numQueued > 2 * (self._numConns - self.numPeers) &&
wire.amInterested) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.