mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
Fix stop seed ratio to only stop seeders, not downloaders
This commit is contained in:
parent
8588a6e83c
commit
efd1f18082
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue