mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-24 11:28:31 +00:00
Catch exception when removing a checking torrent
This commit is contained in:
parent
60a78c52e2
commit
b6fe5166a8
1 changed files with 8 additions and 3 deletions
|
@ -738,7 +738,12 @@ class TorrentManager(component.Component):
|
||||||
|
|
||||||
def on_alert_state_changed(self, alert):
|
def on_alert_state_changed(self, alert):
|
||||||
log.debug("on_alert_state_changed")
|
log.debug("on_alert_state_changed")
|
||||||
|
try:
|
||||||
torrent_id = str(alert.handle.info_hash())
|
torrent_id = str(alert.handle.info_hash())
|
||||||
|
except RuntimeError:
|
||||||
|
return
|
||||||
|
|
||||||
|
if torrent_id in self.torrents:
|
||||||
self.torrents[torrent_id].update_state()
|
self.torrents[torrent_id].update_state()
|
||||||
component.get("EventManager").emit(TorrentStateChangedEvent(torrent_id, self.torrents[torrent_id].state))
|
component.get("EventManager").emit(TorrentStateChangedEvent(torrent_id, self.torrents[torrent_id].state))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue