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

check if download is complete and notify tracker #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asapach
Copy link
Collaborator

@asapach asapach commented Apr 23, 2015

This should address #48 and #109.

Added a subscriber for 'verify' event with a debounce of 250ms that checks the bitfield to see if all the pieces have been downloaded. There's a bit of math and bitwise magic involved.

Once the download is complete a 'complete' event is emitted and the tracker is notified.

@asapach asapach changed the title check if download is complete an notify tracker check if download is complete and notify tracker May 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant