-
Notifications
You must be signed in to change notification settings - Fork 382
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
[BUG] Runtime does not terminate when torrent has been downloaded #167
Comments
jstack reveals that there is only one non-daemon thread (reproducible each time):
|
Although sometimes it looks like shutdown is not initiated at all (and all threads continue to run, not only the lsd-announcer thread) even if the torrent is already present and |
Overall it looks like everything is more or less OK (although tracker interaction in the ProcessTorrentStage should not be happening probably) except for the fact that the "LSD announcer" shutdown hook does not seem to execute, which has to be the reason why the corresponding thread is stuck. |
Hey @atomashpolskiy, any chance at this getting fixed soon? I started looking through the code to help fix but haven't done anything substantial. |
fix bug #167 - fix synchronization race conditions in lifecycle event…
Describe the bug
Processing proceeds to the SeedStage, even though BtRuntime.shutdown() is invoked after the download stage has finished.
Expected behaviour
Processing finishes immediately, skipping the SeedStage.
To Reproduce
Testing this via CliClient with "default" options:
-s
command line parameter (which enables seeding after the download has finished) is NOT usedThe text was updated successfully, but these errors were encountered: