From 59f05a890ffc26c2fb5aed0abe9626a0e245c480 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 28 Dec 2009 21:50:13 +0000 Subject: [PATCH] Don't apply 'stop/remove on completed' rules to torrents in a Queued or Paused state --- 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 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"]: