summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-12-28 21:50:13 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-12-28 21:50:13 +0000
commit59f05a890ffc26c2fb5aed0abe9626a0e245c480 (patch)
tree2d98f33345756bc59d34f14b2bbd31eafd056bdd
parentafbeaa6b7d6bb58f5c6098daa6125a6d6489de71 (diff)
downloaddeluge-59f05a890ffc26c2fb5aed0abe9626a0e245c480.tar.gz
deluge-59f05a890ffc26c2fb5aed0abe9626a0e245c480.tar.bz2
deluge-59f05a890ffc26c2fb5aed0abe9626a0e245c480.zip
Don't apply 'stop/remove on completed' rules to torrents in a Queued or Paused state
-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 33d517452..eace702d3 100644
--- a/deluge/core/torrentmanager.py
+++ b/deluge/core/torrentmanager.py
@@ -253,7 +253,7 @@ class TorrentManager(component.Component):
def update(self):
for torrent_id, torrent in self.torrents.items():
- if self.config["stop_seed_at_ratio"] or torrent.options["stop_at_ratio"] and torrent.state not in ("Checking", "Allocating"):
+ if self.config["stop_seed_at_ratio"] or torrent.options["stop_at_ratio"] and torrent.state not in ("Checking", "Allocating", "Paused", "Queued"):
# If the global setting is set, but the per-torrent isn't.. Just skip to the next torrent
# This is so that a user can turn-off the stop at ratio option on a per-torrent basis
if self.config["stop_seed_at_ratio"] and not torrent.options["stop_at_ratio"]: