mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 03:54:50 +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):
|
||||
if self.config["stop_seed_at_ratio"]:
|
||||
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()
|
||||
if self.config["remove_seed_at_ratio"]:
|
||||
self.remove(torrent.torrent_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue