Fix #2021 : Share ratio limit not obeyed for torrents downloaded outside deluge
Share ratio limit is based upon torrent.is_finished and a seeded torrent added to the session was not set after checking.
This commit is contained in:
parent
e33d834cc9
commit
7ae912114b
|
@ -933,9 +933,9 @@ class TorrentManager(component.Component):
|
|||
if torrent.options["download_location"] != move_path:
|
||||
torrent.move_storage(move_path)
|
||||
|
||||
torrent.is_finished = True
|
||||
component.get("EventManager").emit(TorrentFinishedEvent(torrent_id))
|
||||
|
||||
torrent.is_finished = True
|
||||
torrent.update_state()
|
||||
|
||||
# Only save resume data if it was actually downloaded something. Helps
|
||||
|
|
Loading…
Reference in New Issue