mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
This commit is contained in:
parent
ad19cbfc55
commit
5c54717c81
1 changed files with 4 additions and 2 deletions
|
@ -437,8 +437,10 @@ class Manager:
|
||||||
and self.get_core_torrent_state(unique_ID, efficient)['is_paused'] \
|
and self.get_core_torrent_state(unique_ID, efficient)['is_paused'] \
|
||||||
and not self.is_user_paused(unique_ID):
|
and not self.is_user_paused(unique_ID):
|
||||||
deluge_core.resume(unique_ID)
|
deluge_core.resume(unique_ID)
|
||||||
elif not self.get_core_torrent_state(unique_ID, efficient)['is_paused'] and \
|
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)):
|
( (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)
|
deluge_core.pause(unique_ID)
|
||||||
|
|
||||||
# Event handling
|
# Event handling
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue