This commit is contained in:
Alon Zakai 2007-03-06 08:22:22 +00:00
parent ad19cbfc55
commit 5c54717c81
1 changed files with 4 additions and 2 deletions

View File

@ -437,8 +437,10 @@ class Manager:
and self.get_core_torrent_state(unique_ID, efficient)['is_paused'] \
and not self.is_user_paused(unique_ID):
deluge_core.resume(unique_ID)
elif not self.get_core_torrent_state(unique_ID, efficient)['is_paused'] and \
(index >= self.get_pref('max_active_torrents') or self.is_user_paused(unique_ID)):
elif (not self.get_core_torrent_state(unique_ID, efficient)['is_paused']) and \
( (index >= self.get_pref('max_active_torrents') and \
self.get_pref('max_active_torrents') != -1 ) or \
self.is_user_paused(unique_ID)):
deluge_core.pause(unique_ID)
# Event handling