mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +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()
|
self.core.apply_queue()
|
||||||
|
|
||||||
def resume(self):
|
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()
|
self.core.apply_queue()
|
||||||
|
|
||||||
def limit(self):
|
def limit(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue