summaryrefslogtreecommitdiffstats
path: root/module/PluginThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r--module/PluginThread.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index 6d3dd55e2..ed289a591 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -309,6 +309,7 @@ class DecrypterThread(PluginThread):
"""run method"""
pyfile = self.active
+ retry = False
try:
self.m.log.info(_("Decrypting starts: %s") % self.active.name)
@@ -336,7 +337,8 @@ class DecrypterThread(PluginThread):
except Retry:
self.m.log.info(_("Retrying %s") % self.active.name)
- return self.active.plugin.preprocessing(self)
+ retry = True
+ return self.run()
except Exception, e:
@@ -352,10 +354,11 @@ class DecrypterThread(PluginThread):
finally:
- self.active.release()
- self.active = False
- self.m.core.files.save()
- self.m.localThreads.remove(self)
+ if not retry:
+ self.active.release()
+ self.active = False
+ self.m.core.files.save()
+ self.m.localThreads.remove(self)
#self.m.core.hookManager.downloadFinished(pyfile)
@@ -363,7 +366,8 @@ class DecrypterThread(PluginThread):
#self.m.localThreads.remove(self)
#self.active.finishIfDone()
- pyfile.delete()
+ if not retry:
+ pyfile.delete()
########################################################################
class HookThread(PluginThread):