diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 04:58:12 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-28 04:58:12 +0100 |
commit | 2a879b1481bdd3a6cac901dc36be472607ae7c79 (patch) | |
tree | 7b355c049edf678ce80009c0d9e7d982c759ffba /module/HookManager.py | |
parent | [SimpleCrypter][SimpleHoster] Fix typo in _error method call (diff) | |
download | pyload-2a879b1481bdd3a6cac901dc36be472607ae7c79.tar.xz |
[HookManager] Remove __threaded__ checks
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 15 |
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) |