summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
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)