mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 10:05:19 +00:00
Prevent Scheduler plugin from setting an invalid 'max_active_torrents'
value.
This commit is contained in:
parent
452781a78c
commit
2ce5d5e35e
@ -85,6 +85,7 @@ class plugin_Scheduler:
|
|||||||
self.core.apply_queue()
|
self.core.apply_queue()
|
||||||
|
|
||||||
def resume(self):
|
def resume(self):
|
||||||
|
if self.prevact != None:
|
||||||
self.config.set("max_active_torrents", self.prevact)
|
self.config.set("max_active_torrents", self.prevact)
|
||||||
self.core.apply_queue()
|
self.core.apply_queue()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user