From e7dada6afc13c430fa5ae46bf9d52e574aa71b12 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 27 Feb 2012 15:09:21 +0000 Subject: 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. --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 996f5c441..985a1eb2c 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -875,9 +875,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 = torrent.handle.is_seed() torrent.update_state() # Only save resume data if it was actually downloaded something. Helps -- cgit