diff options
Diffstat (limited to 'module/plugins/Hook.py')
-rw-r--r-- | module/plugins/Hook.py | 3 |
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): |