summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2008-01-20 23:16:38 +0000
committerAndrew Resch <andrewresch@gmail.com>2008-01-20 23:16:38 +0000
commit2ce5d5e35eb08686d6f3c70f951fca60048b10d9 (patch)
tree25eb86ae700b8f6c71253f984ed86c2b8f3e6ae0 /plugins
parent452781a78c68b3ad5239134b1644933641a31cb8 (diff)
downloaddeluge-2ce5d5e35eb08686d6f3c70f951fca60048b10d9.tar.gz
deluge-2ce5d5e35eb08686d6f3c70f951fca60048b10d9.tar.bz2
deluge-2ce5d5e35eb08686d6f3c70f951fca60048b10d9.zip
Prevent Scheduler plugin from setting an invalid 'max_active_torrents'
value.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scheduler/plugin.py3
1 files changed, 2 insertions, 1 deletions
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):