mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Don't apply 'stop/remove on completed' rules to torrents in a Queued or Paused state
This commit is contained in:
parent
afbeaa6b7d
commit
59f05a890f
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ class TorrentManager(component.Component):
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
for torrent_id, torrent in self.torrents.items():
|
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
|
# 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
|
# 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"]:
|
if self.config["stop_seed_at_ratio"] and not torrent.options["stop_at_ratio"]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue