Only emit the TorrentFinished event when the torrent hasn't been previously finished.. e.g. after a force recheck

This commit is contained in:
Andrew Resch 2009-02-28 22:07:49 +00:00
parent 4baf7b167a
commit 342063599f

View file

@ -633,11 +633,11 @@ class TorrentManager(component.Component):
if move_path:
if torrent.options["download_location"] != move_path:
torrent.move_storage(move_path)
torrent.is_finished = True
component.get("SignalManager").emit("torrent_finished", torrent_id)
torrent.is_finished = True
torrent.update_state()
torrent.save_resume_data()
component.get("SignalManager").emit("torrent_finished", torrent_id)
def on_alert_torrent_paused(self, alert):
log.debug("on_alert_torrent_paused")