From efd1f180828827c017d2ab556e7d1fec55b06d08 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 15 Jun 2008 04:16:31 +0000 Subject: [PATCH] Fix stop seed ratio to only stop seeders, not downloaders --- deluge/core/torrentmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 946c4bc93..ac943a5f4 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -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)