diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2018-02-18 04:15:39 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2018-02-18 04:15:42 +0300 |
commit | c29e02ce29245cba2b198a3b5da533d961118fb8 (patch) | |
tree | 32617d9a3794929f0bafbbcd3a6a1f0b4829805c /lib | |
parent | b89afaa647dba9587c5cd49d11b964fc5dba811a (diff) |
standard
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/torrent.js b/lib/torrent.js index fb3656c..c0e8aaf 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -1472,9 +1472,9 @@ Torrent.prototype._request = function (wire, index, hotswap) { var maxOutstandingRequests = isWebSeed ? Math.min( - getPiecePipelineLength(wire, PIPELINE_MAX_DURATION, self.pieceLength), - self.maxWebConns - ) + getPiecePipelineLength(wire, PIPELINE_MAX_DURATION, self.pieceLength), + self.maxWebConns + ) : getBlockPipelineLength(wire, PIPELINE_MAX_DURATION) if (numRequests >= maxOutstandingRequests) return false |