tweak last

This commit is contained in:
Marcos Pinto 2007-11-10 08:16:43 +00:00
parent d3fe619f11
commit 6a51a4b9ed
1 changed files with 3 additions and 6 deletions

View File

@ -523,14 +523,11 @@ class Manager:
if not torrent_state['is_paused'] and torrent_state['is_seed'] and not self.is_user_paused(unique_ID):
seed_torrent_cnt += 1
if torrent_state['is_paused'] or \
(torrent_state['is_paused'] and not \
if (torrent_state['is_paused'] and not \
self.is_user_paused(unique_ID)) and (seed_torrent_cnt <= self.get_pref('max_seeding_torrents')) or (self.get_pref('max_seeding_torrents') == -1):
self.resume(unique_ID)
if torrent_state['is_paused'] or \
(torrent_state['is_paused'] and not \
self.is_user_paused(unique_ID)) and (seed_torrent_cnt > self.get_pref('max_seeding_torrents')) and (self.get_pref('max_seeding_torrents') != -1):
if not torrent_state['is_paused'] and (seed_torrent_cnt > self.get_pref('max_seeding_torrents')) and (self.get_pref('max_seeding_torrents') != -1):
self.pause(unique_ID)
if (active_torrent_cnt <= self.get_pref('max_active_torrents') or \