From 2ce5d5e35eb08686d6f3c70f951fca60048b10d9 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 20 Jan 2008 23:16:38 +0000 Subject: [PATCH] Prevent Scheduler plugin from setting an invalid 'max_active_torrents' value. --- plugins/Scheduler/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Scheduler/plugin.py b/plugins/Scheduler/plugin.py index 045a52a0c..869fe0f0d 100644 --- a/plugins/Scheduler/plugin.py +++ b/plugins/Scheduler/plugin.py @@ -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):