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

Allow to cancel reserve on unwritten blocks #272

Merged
merged 1 commit into from Feb 19, 2015

Conversation

@grunjol
Copy link
Contributor

grunjol commented Feb 18, 2015

Trying to figure out why #266 happens and after debugging using the #267 PR, it seems like the cancelBlock is called as you mention here #253 but if the block is the first in the piece and was never written, the 'reserve' is never really canceled because the buffer is null (because is lazy initialized)

@feross

This comment has been minimized.

Copy link
Member

feross commented Feb 19, 2015

Good catch! I believe this fixes #266, which is a bug I've been trying to track down for a while. You're the bomb!

feross added a commit that referenced this pull request Feb 19, 2015
Allow to cancel reserve on unwritten blocks
@feross feross merged commit b60e024 into webtorrent:master Feb 19, 2015
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@feross

This comment has been minimized.

Copy link
Member

feross commented Feb 19, 2015

Released as webtorrent@0.27.2

@lock lock bot locked as resolved and limited conversation to collaborators May 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.