summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2012-02-27 15:09:21 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2012-02-27 15:31:53 +0000
commite7dada6afc13c430fa5ae46bf9d52e574aa71b12 (patch)
tree777163a16116bcee8398424bd661b0f627a88890
parent8db789ffe2d8d5efa607af090e95ef6a6157e290 (diff)
downloaddeluge-e7dada6af.zip
deluge-e7dada6af.tar.gz
deluge-e7dada6af.tar.bz2
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.
-rw-r--r--deluge/core/torrentmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py
index 996f5c4..985a1eb 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