mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Only emit the TorrentFinished event when the torrent hasn't been previously finished.. e.g. after a force recheck
This commit is contained in:
parent
1375d4f545
commit
eb05a47d6a
1 changed files with 2 additions and 2 deletions
|
@ -634,11 +634,11 @@ class TorrentManager(component.Component):
|
||||||
if move_path:
|
if move_path:
|
||||||
if torrent.options["download_location"] != move_path:
|
if torrent.options["download_location"] != move_path:
|
||||||
torrent.move_storage(move_path)
|
torrent.move_storage(move_path)
|
||||||
|
|
||||||
torrent.is_finished = True
|
torrent.is_finished = True
|
||||||
|
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
|
||||||
|
|
||||||
torrent.update_state()
|
torrent.update_state()
|
||||||
torrent.save_resume_data()
|
torrent.save_resume_data()
|
||||||
component.get("EventManager").emit(TorrentFinishedEvent(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…
Add table
Add a link
Reference in a new issue