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

Better download control #1285

Closed
wants to merge 5 commits into from
Closed
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

fix typo

  • Loading branch information
vintikzzz committed Feb 4, 2018
commit 4a7893e24c4f5cdeb791fdb24eefb67713e2db0e
@@ -78,8 +78,8 @@ FileStream.prototype._notify = function () {

debug('pushing buffer of length %s', buffer.length)
self._reading = false
self._backPreasure = self.push(buffer)
if (!self._backPreasure && self._missing !== 0) self.emit('piece', self._piece);
var backPressure = self.push(buffer)
if (!backPressure && self._missing !== 0) self.emit('piece', self._piece);
if (self._missing === 0) self.push(null)
})
self._piece += 1
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.