summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-05-04 19:07:30 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-05-04 19:07:30 +0200
commit836d152aa65e3b305bf621f4ae54335710bee8c8 (patch)
tree5bc765b24965598f4c8c9eb31f232f6152f6753d /module/ThreadManager.py
parentdecrypt if downloadthreads are occupied (diff)
downloadpyload-836d152aa65e3b305bf621f4ae54335710bee8c8.tar.xz
several fixes
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index bb43bb1db..42117ee14 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -48,9 +48,10 @@ class ThreadManager(Thread):
def run(self):
while True:
- if not self.pause and (len(self.threads) < int(self.parent.config['general']['max_downloads']) or self.isDecryptWaiting()):
+ if (len(self.threads) < int(self.parent.config['general']['max_downloads']) or self.isDecryptWaiting()) and not self.pause:
job = self.getJob()
if job:
+ print "job"
thread = self.createThread(job)
thread.start()
sleep(1)