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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-11-27 15:40:39 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-11-27 15:40:39 +0300
commit891e5be7b6c8e089419c0a7de50a872d05711d5f (patch)
treeb56d0c540e709219ddb85e0c7fe5dc0223c28e7d /lib/torrent.js
parenta63a9a1b6453222253c91d8da795e4d211f7699f (diff)
style fix
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index d2c7618..7834a80 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -653,7 +653,7 @@ Torrent.prototype._updateWire = function (wire) {
if (!wire.downloaded) return validateWire()
var minOutstandingRequests = getPipelineLength(wire, PIPELINE_MIN_DURATION)
- if (wire.requests.length >= minOutstandingRequests) return true
+ if (wire.requests.length >= minOutstandingRequests) return
var maxOutstandingRequests = getPipelineLength(wire, PIPELINE_MAX_DURATION)
trySelectWire(false) || trySelectWire(true)