summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-07 13:11:07 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-07 13:11:07 +0200
commit11c80f1d4985b21b5800b981428f7bf88fa9778b (patch)
treed1b66ae141541b3ff1b8e23139e7faa249c2cdde /module/ThreadManager.py
parentunrar ram check (diff)
downloadpyload-11c80f1d4985b21b5800b981428f7bf88fa9778b.tar.xz
recycle sqlite connection
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index 19e239c16..73e9efe56 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -172,12 +172,12 @@ class ThreadManager:
if self.pause or not self.core.server_methods.is_time_download(): return
if self.downloaded > 20:
- if self.downloadingIds():
+ if self.downloadingIds() or self.processingIds():
return
pycurl.global_cleanup()
pycurl.global_init(pycurl.GLOBAL_DEFAULT)
self.downloaded = 0
- self.log.debug("Cleaned up resources")
+ self.log.debug("Cleaned up pycurl")
free = [x for x in self.threads if not x.active]