summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-28 00:17:15 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-12-28 00:17:15 +0100
commit0f91dcb371334286b43fafffc5e4f605bd184f9d (patch)
treef6c77c71136482d4cf38fe2447c6374e3ce0e4ad /module/ThreadManager.py
parentapi fixes (diff)
downloadpyload-0f91dcb371334286b43fafffc5e4f605bd184f9d.tar.xz
working speedlimit + proxy support, closed #197
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index 284997d4a..6a1802b9e 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -44,8 +44,6 @@ class ThreadManager:
self.threads = [] # thread list
self.localThreads = [] #hook+decrypter threads
- #self.infoThread = PluginThread.InfoThread(self)
-
self.pause = True
self.reconnecting = Event()
@@ -54,7 +52,7 @@ class ThreadManager:
pycurl.global_init(pycurl.GLOBAL_DEFAULT)
- for i in range(0, self.core.config.get("general", "max_downloads")):
+ for i in range(0, self.core.config.get("download", "max_downloads")):
self.createThread()
@@ -175,9 +173,9 @@ class ThreadManager:
def checkThreadCount(self):
"""checks if there are need for increasing or reducing thread count"""
- if len(self.threads) == self.core.config.get("general", "max_downloads"):
+ if len(self.threads) == self.core.config.get("download", "max_downloads"):
return True
- elif len(self.threads) < self.core.config.get("general", "max_downloads"):
+ elif len(self.threads) < self.core.config.get("download", "max_downloads"):
self.createThread()
else:
free = [x for x in self.threads if not x.active]