diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-19 19:59:45 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-12-19 19:59:45 +0100 |
commit | 34a5b4372aa6e50c072a568c564d6d492743c508 (patch) | |
tree | b7ace2ebd3511b4165cccfb6b44d96c60963dc14 /module/ThreadManager.py | |
parent | corrected byte range on resume (diff) | |
download | pyload-34a5b4372aa6e50c072a568c564d6d492743c508.tar.xz |
some adjusments
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py index eba23f28c..1b37bdfed 100644 --- a/module/ThreadManager.py +++ b/module/ThreadManager.py @@ -178,8 +178,9 @@ class ThreadManager: elif len(self.threads) < self.core.config.get("general", "max_downloads"): self.createThread() else: - #@TODO: close thread - pass + free = [x for x in self.threads if not x.active] + if free: + free[0].put("quit") def cleanPyCurl(self): |