diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-07 13:11:07 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-07 13:11:07 +0200 |
commit | 11c80f1d4985b21b5800b981428f7bf88fa9778b (patch) | |
tree | d1b66ae141541b3ff1b8e23139e7faa249c2cdde /module/ThreadManager.py | |
parent | unrar ram check (diff) | |
download | pyload-11c80f1d4985b21b5800b981428f7bf88fa9778b.tar.xz |
recycle sqlite connection
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r-- | module/ThreadManager.py | 4 |
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] |