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

How to check if a torrent is downloaded? #314

Closed
sudoaza opened this issue May 12, 2015 · 1 comment
Closed

How to check if a torrent is downloaded? #314

sudoaza opened this issue May 12, 2015 · 1 comment

Comments

@sudoaza
Copy link

@sudoaza sudoaza commented May 12, 2015

I want to download lots of torrents so i need some way to throtle them (or i get an error of too many files opened) is there any way to check if a torrent is completely downloaded? maybe a callback or something?

thanks for the tool

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 13, 2015

The torrent object emits a 'done' event when it's finished downloading. You can use that to throttle the number of concurrent downloads.

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

Successfully merging a pull request may close this issue.

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