summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 21:30:58 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-09 21:30:58 +0200
commit087286d3fd6087fc7772ea538629f0add4eeb776 (patch)
tree6c4e8943e0b06525025519db81498fcee4e2861a /module/ThreadManager.py
parentremoved gocr dependency (diff)
downloadpyload-087286d3fd6087fc7772ea538629f0add4eeb776.tar.xz
improvements
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index 9e8da1b2c..caa8524d4 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -61,13 +61,13 @@ class ThreadManager:
self.threads.append(thread)
#----------------------------------------------------------------------
- def createInfoThread(self, data):
+ def createInfoThread(self, data, pid):
"""
start a thread whichs fetches online status and other infos
data = [ .. () .. ]
"""
- PluginThread.InfoThread(self, data)
+ PluginThread.InfoThread(self, data, pid)
#----------------------------------------------------------------------
@@ -156,7 +156,7 @@ class ThreadManager:
def assignJob(self):
"""assing a job to a thread if possible"""
- if self.pause: return
+ if self.pause or not self.core.server_methods.is_time_download(): return
free = [x for x in self.threads if not x.active]