Add 'torrent_finished' signal

This commit is contained in:
Andrew Resch 2008-07-01 22:03:18 +00:00
parent 69e24fe673
commit 4026ac0bf2
1 changed files with 1 additions and 0 deletions

View File

@ -607,6 +607,7 @@ class TorrentManager(component.Component):
torrent.is_finished = True
torrent.update_state()
torrent.write_fastresume()
component.get("SignalManager").emit("torrent_finished", torrent_id)
def on_alert_torrent_paused(self, alert):
log.debug("on_alert_torrent_paused")