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…
Reference in New Issue