Do not attempt to pause/remove a checking torrent due to stop at share ratio rules

This commit is contained in:
Andrew Resch 2009-02-28 21:01:28 +00:00
parent f6c26d6690
commit 60a78c52e2

View file

@ -213,7 +213,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"]