diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-06 18:55:18 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-06 18:55:18 +0200 |
commit | 840d1047ef5f77168aae48bc4412523c3a38bd39 (patch) | |
tree | 243f0d732130af8d46b7dfd080234cec13b01368 /module/ThreadManager.py | |
parent | fix js engine references (diff) | |
download | pyload-840d1047ef5f77168aae48bc4412523c3a38bd39.tar.xz |
fixes?
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index 30b246106..deefe125e 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -216,7 +216,7 @@ class ThreadManager: free = [x for x in self.threads if not x.active] - inuse = set([(x.active.pluginname,self.getLimit(x)) for x in self.threads if x.active and x.active.plugin.account]) + inuse = set([(x.active.pluginname,self.getLimit(x)) for x in self.threads if x.active and hasattr(x.active, "plugin") and x.active.plugin.account]) inuse = map(lambda x : (x[0], x[1], len([y for y in self.threads if y.active and y.active.pluginname == x[0]])) ,inuse) onlimit = [x[0] for x in inuse if x[1] > 0 and x[2] >= x[1]] |