mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 04:54:23 +00:00
Fix stop seed ratio to only stop seeders, not downloaders
This commit is contained in:
parent
8588a6e83c
commit
efd1f18082
@ -160,7 +160,7 @@ class TorrentManager(component.Component):
|
|||||||
def update(self):
|
def update(self):
|
||||||
if self.config["stop_seed_at_ratio"]:
|
if self.config["stop_seed_at_ratio"]:
|
||||||
for torrent in self.torrents:
|
for torrent in self.torrents:
|
||||||
if torrent.get_ratio() >= self.config["stop_seed_ratio"]:
|
if torrent.get_ratio() >= self.config["stop_seed_ratio"] and torrent.is_finished:
|
||||||
torrent.pause()
|
torrent.pause()
|
||||||
if self.config["remove_seed_at_ratio"]:
|
if self.config["remove_seed_at_ratio"]:
|
||||||
self.remove(torrent.torrent_id)
|
self.remove(torrent.torrent_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user