mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 18:10:43 +00:00
Prevent Scheduler plugin from setting an invalid 'max_active_torrents'
value.
This commit is contained in:
parent
452781a78c
commit
2ce5d5e35e
@ -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…
x
Reference in New Issue
Block a user