Tracker can't start again after stopping
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.
Do you need to stop the tracker? Can't you just remove the tracked torrent ?
tracker.remove(trackedTorrent)
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)?
Move the creation of the connection to the start() work for me.