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

torrent.pause is not working #1035

Closed
jo-san opened this issue Feb 7, 2017 · 2 comments
Closed

torrent.pause is not working #1035

jo-san opened this issue Feb 7, 2017 · 2 comments

Comments

@jo-san
Copy link

@jo-san jo-san commented Feb 7, 2017

Hi,

I know it could be a false issue. But i have tried all the ways possible. Am building a node application which will allow my users to downloading torrents from my website. Downloading working fine. But when trying to implement pause/resume its just not happening.

code snippet for reference
var torrent = client.get(torrentId);
// torrent.pause();
torrent.swarm.pause();

tried both.

My webtorrent version: 0.98.0
On Windows7 with node v6.9.1

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Feb 8, 2017

From the docs for torrent.pause():

Temporarily stop connecting to new peers. Note that this does not pause new incoming connections, nor does it pause the streams of existing connections or their wires.

If you want to stop downloading, use torrent.remove(), then torrent.add() with the same path argument to get the download started again.

@feross feross closed this Feb 8, 2017
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 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.