Prevent Scheduler plugin from setting an invalid 'max_active_torrents'

value.
This commit is contained in:
Andrew Resch 2008-01-20 23:16:38 +00:00
parent 452781a78c
commit 2ce5d5e35e
1 changed files with 2 additions and 1 deletions

View File

@ -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):