mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-21 12:04:51 +00:00
Prevent Scheduler plugin from setting an invalid 'max_active_torrents'
value.
This commit is contained in:
parent
452781a78c
commit
2ce5d5e35e
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ class plugin_Scheduler:
|
|||
self.core.apply_queue()
|
||||
|
||||
def resume(self):
|
||||
self.config.set("max_active_torrents", self.prevact)
|
||||
if self.prevact != None:
|
||||
self.config.set("max_active_torrents", self.prevact)
|
||||
self.core.apply_queue()
|
||||
|
||||
def limit(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue