diff options
| author | 2011-06-06 18:55:18 +0200 | |
|---|---|---|
| committer | 2011-06-06 18:55:18 +0200 | |
| commit | 840d1047ef5f77168aae48bc4412523c3a38bd39 (patch) | |
| tree | 243f0d732130af8d46b7dfd080234cec13b01368 /module | |
| parent | fix js engine references (diff) | |
| download | pyload-840d1047ef5f77168aae48bc4412523c3a38bd39.tar.xz | |
fixes?
Diffstat (limited to 'module')
| -rw-r--r-- | module/PyFile.py | 2 | ||||
| -rw-r--r-- | module/ThreadManager.py | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/module/PyFile.py b/module/PyFile.py index 90bbcbc42..02d34e33b 100644 --- a/module/PyFile.py +++ b/module/PyFile.py @@ -118,7 +118,7 @@ class PyFile(object):              self.plugin.clean()              del self.plugin          if hasattr(self.progress, "notify"): -            del self.progress.notify +            self.progress.notify = None          self.m.releaseLink(self.id) 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]] | 
