summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/HookManager.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 16f692d76..cfc3b2923 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -219,10 +219,7 @@ class HookManager:
def downloadFinished(self, pyfile):
for plugin in self.plugins:
if plugin.isActivated():
- if "downloadFinished" in plugin.__threaded__:
- self.startThread(plugin.downloadFinished, pyfile)
- else:
- plugin.downloadFinished(pyfile)
+ plugin.downloadFinished(pyfile)
self.dispatchEvent("downloadFinished", pyfile)
@@ -231,10 +228,7 @@ class HookManager:
def downloadFailed(self, pyfile):
for plugin in self.plugins:
if plugin.isActivated():
- if "downloadFailed" in plugin.__threaded__:
- self.startThread(plugin.downloadFinished, pyfile)
- else:
- plugin.downloadFailed(pyfile)
+ plugin.downloadFailed(pyfile)
self.dispatchEvent("downloadFailed", pyfile)
@@ -242,10 +236,7 @@ class HookManager:
def packageFinished(self, package):
for plugin in self.plugins:
if plugin.isActivated():
- if "packageFinished" in plugin.__threaded__:
- self.startThread(plugin.packageFinished, package)
- else:
- plugin.packageFinished(package)
+ plugin.packageFinished(package)
self.dispatchEvent("packageFinished", package)