Fix stop seed ratio to only stop seeders, not downloaders

This commit is contained in:
Andrew Resch 2008-06-15 04:16:31 +00:00
parent 8588a6e83c
commit efd1f18082

View File

@ -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)