summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/HookManager.py15
-rw-r--r--module/plugins/Hook.py1
2 files changed, 3 insertions, 13 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index 9f173a79e..62e53e783 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)
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index ef3d978a5..90b683d75 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -41,7 +41,6 @@ class Hook(Base):
__name__ = "Hook"
__version__ = "0.2"
__type__ = "hook"
- __threaded__ = []
__config__ = [("name", "type", "desc", "default")]
__description__ = """Interface for hook"""
__author_name__ = ("mkaay", "RaNaN")