diff options
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): |