summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-16 14:28:34 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-16 14:28:34 +0200
commitaade6e6239438b582620cc52b46c63cdde880752 (patch)
tree63d600bce110fde7c2d2d384e2ce5ffc47e363f9 /module/ThreadManager.py
parentclosed #131 (diff)
downloadpyload-aade6e6239438b582620cc52b46c63cdde880752.tar.xz
fixed decrypting files when dl slots are full
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index f9a306c78..f46f816e4 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -209,11 +209,18 @@ class ThreadManager:
thread.put(job)
else:
- #put job back
+ #put job back
if not self.core.files.jobCache.has_key(occ):
self.core.files.jobCache[occ] = []
self.core.files.jobCache[occ].append(job.id)
+ #check for decrypt jobs
+ job = self.core.files.getDecryptJob()
+ if job:
+ job.initPlugin()
+ thread = PluginThread.DecrypterThread(self, job)
+
+
else:
thread = PluginThread.DecrypterThread(self, job)