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

Fixes #1515, #1552. #1592

Merged
merged 1 commit into from Mar 11, 2019
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fixes #1515 and #1552.

  • Loading branch information
corwin-of-amber committed Mar 11, 2019
commit 88b4f5454329a8ad5dcad805fce1997d46b7637c
@@ -43,7 +43,7 @@ class File extends EventEmitter {

// Calculate first piece diffrently, it sometimes have a offset
let downloaded = bitfield.get(start)
? pieceLength - this.offset
? pieceLength - (this.offset % pieceLength)
: Math.max(piece.length - piece.missing - this.offset, 0)

for (let index = start + 1; index <= end; ++index) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.