mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
fix queue oops
This commit is contained in:
parent
8886ee9a59
commit
d3fe619f11
1 changed files with 7 additions and 3 deletions
10
src/core.py
10
src/core.py
|
@ -520,13 +520,17 @@ class Manager:
|
||||||
self.is_user_paused(unique_ID)) and not torrent_state['is_seed']:
|
self.is_user_paused(unique_ID)) and not torrent_state['is_seed']:
|
||||||
active_torrent_cnt += 1
|
active_torrent_cnt += 1
|
||||||
|
|
||||||
if torrent_state['is_seed'] and not self.is_user_paused(unique_ID):
|
if not torrent_state['is_paused'] and torrent_state['is_seed'] and not self.is_user_paused(unique_ID):
|
||||||
seed_torrent_cnt += 1
|
seed_torrent_cnt += 1
|
||||||
|
|
||||||
if (seed_torrent_cnt <= self.get_pref('max_seeding_torrents')) or (self.get_pref('max_seeding_torrents') == -1):
|
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')) or (self.get_pref('max_seeding_torrents') == -1):
|
||||||
self.resume(unique_ID)
|
self.resume(unique_ID)
|
||||||
|
|
||||||
if (seed_torrent_cnt > self.get_pref('max_seeding_torrents')) and (self.get_pref('max_seeding_torrents') != -1):
|
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):
|
||||||
self.pause(unique_ID)
|
self.pause(unique_ID)
|
||||||
|
|
||||||
if (active_torrent_cnt <= self.get_pref('max_active_torrents') or \
|
if (active_torrent_cnt <= self.get_pref('max_active_torrents') or \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue