diff options
author | Jeix <devnull@localhost> | 2010-06-20 13:07:24 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-06-20 13:07:24 +0200 |
commit | 29241018fe7338a88d01a0c37f0a3f9e45b8d6f3 (patch) | |
tree | a83d47660de94bb79cfaf2f0ac2c6ac618a5d061 /module/HookManager.py | |
parent | Debug = False is the better choice as default (diff) | |
download | pyload-29241018fe7338a88d01a0c37f0a3f9e45b8d6f3.tar.xz |
Package_finished event for scripts implemented
bugfix: closing socket for IRC connection (xdcc)
Diffstat (limited to 'module/HookManager.py')
-rw-r--r-- | module/HookManager.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/HookManager.py b/module/HookManager.py index f5835bce0..bb08fff4a 100644 --- a/module/HookManager.py +++ b/module/HookManager.py @@ -73,8 +73,12 @@ class HookManager(): plugin.downloadFinished(pyfile) self.lock.release() - def packageFinished(self, pyfile, package): - raise NotImplementedError + def packageFinished(self, package): + self.lock.acquire() + + for plugin in self.plugins: + plugin.packageFinished(package) + self.lock.release() def beforeReconnecting(self, ip): self.lock.acquire() |