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

Tracker can't start again after stopping #175

Open
TraumaER opened this issue Mar 13, 2016 · 3 comments
Open

Tracker can't start again after stopping #175

TraumaER opened this issue Mar 13, 2016 · 3 comments

Comments

@TraumaER
Copy link

tracker.start() works to begin my tracker, but if I want to stop the tracker while the app is running via tracker.stop() and then start it again by tracker.start() I get

2016-03-13 16:06:59.300 ERROR 1144 --- [ tracker:6969] c.t.t.t.Tracker : Could not start the tracker: Connection is closed!

I'm not recreating the tracker object in between stop and start.

@zanella
Copy link

zanella commented Oct 3, 2016

Do you need to stop the tracker? Can't you just remove the tracked torrent ?

tracker.remove(trackedTorrent)

@mpetazzoni
Copy link
Owner

Ah yeah, I guess that's because the creation of the connection needs to be moved to the start() method:

https://github.com/mpetazzoni/ttorrent/blob/master/core/src/main/java/com/turn/ttorrent/tracker/Tracker.java#L109

Do you feel like you could submit a PR for this (and test that it fixes your problem)?

@thiennt8
Copy link

Move the creation of the connection to the start() work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants