From 5394fc834f444f30b6874363f80a74e5016ab735 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Fri, 27 Jan 2017 23:01:25 +0100 Subject: [PATCH] Use the new, double-add protected hook functions Signed-off-by: Gergely Nagy --- src/Akela/OneShot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Akela/OneShot.cpp b/src/Akela/OneShot.cpp index 28ca16fe..77c45e1c 100644 --- a/src/Akela/OneShot.cpp +++ b/src/Akela/OneShot.cpp @@ -295,8 +295,8 @@ namespace Akela { void OneShot::begin (void) { - event_handler_hook_add (eventHandlerHook); - loop_hook_add (loopHook); + event_handler_hook_use (eventHandlerHook); + loop_hook_use (loopHook); } bool @@ -332,7 +332,7 @@ namespace Akela { void OneShot::enableAuto (void) { - event_handler_hook_add (eventHandlerAutoHook); + event_handler_hook_use (eventHandlerAutoHook); } void