summaryrefslogtreecommitdiffstats
path: root/module/plugins/Hook.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/plugins/Hook.py
parentpatches from #392 (diff)
downloadpyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r--module/plugins/Hook.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py
index fdcaccfe3..51ebd1aec 100644
--- a/module/plugins/Hook.py
+++ b/module/plugins/Hook.py
@@ -18,7 +18,6 @@
@interface-version: 0.2
"""
-from thread import start_new_thread
from traceback import print_exc
from Plugin import Base
@@ -32,7 +31,7 @@ class Expose(object):
def threaded(f):
def run(*args,**kwargs):
- return start_new_thread(f, args, kwargs)
+ hookManager.startThread(f, *args, **kwargs)
return run
class Hook(Base):