From 705d0e5163876c94b9b90a440eb38b152bcba1e0 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 17 Oct 2010 14:03:52 +0200 Subject: rs fix, more cleanup stuff --- module/PluginThread.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'module/PluginThread.py') diff --git a/module/PluginThread.py b/module/PluginThread.py index d3801788e..572561eb0 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -25,7 +25,7 @@ from time import time from time import strftime from traceback import print_exc, format_exc from pprint import pformat -from sys import exc_info +from sys import exc_info, exc_clear from types import MethodType from os.path import join, exists @@ -124,8 +124,10 @@ class DownloadThread(PluginThread): #---------------------------------------------------------------------- def run(self): """run method""" + pyfile = None while True: + del pyfile self.active = self.queue.get() pyfile = self.active @@ -264,6 +266,7 @@ class DownloadThread(PluginThread): finally: self.m.core.files.save() + exc_clear() self.m.log.info(_("Download finished: %s") % pyfile.name) @@ -360,6 +363,7 @@ class DecrypterThread(PluginThread): self.active = False self.m.core.files.save() self.m.localThreads.remove(self) + exc_clear() #self.m.core.hookManager.downloadFinished(pyfile) -- cgit v1.2.3