summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-17 14:03:52 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-10-17 14:03:52 +0200
commit705d0e5163876c94b9b90a440eb38b152bcba1e0 (patch)
treec48a726a761e8ffd8e88b62ac5eae598984d985a /module/PluginThread.py
parenthotfile (diff)
downloadpyload-705d0e5163876c94b9b90a440eb38b152bcba1e0.tar.xz
rs fix, more cleanup stuff
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py6
1 files changed, 5 insertions, 1 deletions
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)