summaryrefslogtreecommitdiffstats
path: root/module/HookManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-13 15:25:32 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-13 15:25:32 +0200
commit43460c40d00819535dfeecfdb80f8a608f2190fd (patch)
tree351518d8db3e5ee12689af4e019d5c3fc90bd212 /module/HookManager.py
parentpatches from #392 (diff)
downloadpyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'module/HookManager.py')
-rw-r--r--module/HookManager.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/HookManager.py b/module/HookManager.py
index be5f548d7..88ce62da6 100644
--- a/module/HookManager.py
+++ b/module/HookManager.py
@@ -22,7 +22,6 @@ import __builtin__
import traceback
from thread import start_new_thread
from threading import RLock
-from time import time
from types import MethodType
@@ -270,8 +269,8 @@ class HookManager:
def unrarFinished(self, folder, fname):
self.dispatchEvent("unrarFinished", folder, fname)
- def startThread(self, function, pyfile):
- t = HookThread(self.core.threadManager, function, pyfile)
+ def startThread(self, function, *args, **kwargs):
+ t = HookThread(self.core.threadManager, function, args, kwargs)
def activePlugins(self):
""" returns all active plugins """