diff options
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] |