diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2023-11-26 13:20:40 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2023-11-27 16:17:44 +0100 |
commit | 54d6f502319ea60de6cbe34f1c22e7eed367f1ee (patch) | |
tree | a2a21b703ee354070d75d63f984684f1029c24b2 /minify_web_js.py | |
parent | [Core] Call wait_for_alert in a thread (diff) | |
download | deluge-54d6f502319ea60de6cbe34f1c22e7eed367f1ee.tar.xz deluge-54d6f502319ea60de6cbe34f1c22e7eed367f1ee.zip |
[Core] Refactor Alertmanager to retry unhandled alerts
We are currently creating a copy of each alert to avoid segfaults when
the next pop_alerts invalidates the lt alert objects we are holding
for handler callbacks.
However these alert copies are not deep enough since need to also
resolve the alert object methods e.g. message() therefore it is still
possible to result in lt segfaults.
The workaround is to check for any handlers not called, give them some
more time and eventually discard if still not handled.
Ref: https://github.com/arvidn/libtorrent/issues/6437
Diffstat (limited to 'minify_web_js.py')
0 files changed, 0 insertions, 0 deletions