mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
Add 'torrent_finished' signal
This commit is contained in:
parent
69e24fe673
commit
4026ac0bf2
@ -607,6 +607,7 @@ class TorrentManager(component.Component):
|
|||||||
torrent.is_finished = True
|
torrent.is_finished = True
|
||||||
torrent.update_state()
|
torrent.update_state()
|
||||||
torrent.write_fastresume()
|
torrent.write_fastresume()
|
||||||
|
component.get("SignalManager").emit("torrent_finished", torrent_id)
|
||||||
|
|
||||||
def on_alert_torrent_paused(self, alert):
|
def on_alert_torrent_paused(self, alert):
|
||||||
log.debug("on_alert_torrent_paused")
|
log.debug("on_alert_torrent_paused")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user