From 6a997661dc5c259f844531382a90a4ca120f1233 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 29 Sep 2013 13:03:17 +0200 Subject: basics for web setup --- pyload/threads/ThreadManager.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pyload/threads/ThreadManager.py') 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""" -- cgit v1.2.3