-
Notifications
You must be signed in to change notification settings - Fork 452
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
LaunchManyCore fails to produce notification on torrent completion #3719
Comments
Nice find! Certainly an edge case. I guess it's not hard to reproduce this with a unit test and fix it? 👍 |
Adding the download to Also, I just noticed |
After pondering on this for a few hours I can say that it is impossible to fix this problem correctly without refactoring the libtorrent wrapper. |
Related to #3418 |
I printed the LibTorrent alerts:
We need the first state change |
This seems like it will be fixed in #3775, so I will mark this as completed with AllChannel2.0. |
@qstokkink, I used a different mechanism there, so it is not fixed. This will be fixed with redesign of Libtorrent wrapper, so it should stay opened as a reminder. |
@ichorid we addressed this already with the finished callback in the |
Solved by #4090 |
In fact, this is only solved for GigaChannels, because we now don't rely on triggers, but instead schedule periodic channels DB consistency checks. |
If a download takes less than a second to complete,
sesscb_states_callback
fails to produce the notification on torrent finish.It happens because
new_active_downloads
only gets new entries if their status isDLSTATUS_DOWNLOADING
:tribler/Tribler/Core/APIImplementation/LaunchManyCore.py
Lines 679 to 698 in 8981c83
This makes notification fail for corner cases, like unit tests.
The text was updated successfully, but these errors were encountered: