From 087286d3fd6087fc7772ea538629f0add4eeb776 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 9 Aug 2010 21:30:58 +0200 Subject: improvements --- module/ThreadManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/ThreadManager.py') 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] -- cgit v1.2.3