diff options
Diffstat (limited to 'pyload/threads/ThreadManager.py')
-rw-r--r-- | pyload/threads/ThreadManager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pyload/threads/ThreadManager.py b/pyload/threads/ThreadManager.py index ff8bfe8d7..07b0cd6e9 100644 --- a/pyload/threads/ThreadManager.py +++ b/pyload/threads/ThreadManager.py @@ -167,11 +167,14 @@ class ThreadManager: self.assignJob() #it may be failed non critical so we try it again - if (self.infoCache or self.infoResults) and self.timestamp < time(): + if self.infoCache and self.timestamp < time(): self.infoCache.clear() - self.infoResults.clear() self.log.debug("Cleared Result cache") + for rid in self.infoResults.keys(): + if self.infoResults[rid].isStale(): + del self.infoResults[rid] + def tryReconnect(self): """checks if reconnect needed""" |