summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-06-20 13:07:24 +0200
committerGravatar Jeix <devnull@localhost> 2010-06-20 13:07:24 +0200
commit29241018fe7338a88d01a0c37f0a3f9e45b8d6f3 (patch)
treea83d47660de94bb79cfaf2f0ac2c6ac618a5d061 /module/HookManager.py
parentDebug = False is the better choice as default (diff)
downloadpyload-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.py8
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()