diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-14 02:39:12 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-14 02:39:12 +0200 |
commit | 9fe0a213ba7c639185ac8ee7ce6516f02bbe13c1 (patch) | |
tree | f454030fbe8d1780c529e56f8e7526e8d7cb8520 /module/HookManager.py | |
parent | Fix class definition (diff) | |
download | pyload-9fe0a213ba7c639185ac8ee7ce6516f02bbe13c1.tar.xz |
Removed __threaded__ attribute
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 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) |