summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2009-02-28 21:01:28 +0000
committerAndrew Resch <andrewresch@gmail.com>2009-02-28 21:01:28 +0000
commitc6c861885ee218d3d26a4d55fc41a42c1d583cbc (patch)
tree0051c362738da1c40b3fbd5ce7e88c8c367694f5
parent2831e10a24659ac521397642acdc2d11964e8ecc (diff)
downloaddeluge-c6c861885ee218d3d26a4d55fc41a42c1d583cbc.tar.gz
deluge-c6c861885ee218d3d26a4d55fc41a42c1d583cbc.tar.bz2
deluge-c6c861885ee218d3d26a4d55fc41a42c1d583cbc.zip
Do not attempt to pause/remove a checking torrent due to stop at share ratio rules
-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 d659de62d..d118955d3 100644
--- a/deluge/core/torrentmanager.py
+++ b/deluge/core/torrentmanager.py
@@ -212,7 +212,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"]:
+ if self.config["stop_seed_at_ratio"] or torrent.options["stop_at_ratio"] and torrent.state not in ("Checking", "Allocating"):
stop_ratio = self.config["stop_seed_ratio"]
if torrent.options["stop_at_ratio"]:
stop_ratio = torrent.options["stop_ratio"]