Use the new, double-add protected hook functions

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 981ebb13d1
commit 5394fc834f

@ -295,8 +295,8 @@ namespace Akela {
void void
OneShot::begin (void) { OneShot::begin (void) {
event_handler_hook_add (eventHandlerHook); event_handler_hook_use (eventHandlerHook);
loop_hook_add (loopHook); loop_hook_use (loopHook);
} }
bool bool
@ -332,7 +332,7 @@ namespace Akela {
void void
OneShot::enableAuto (void) { OneShot::enableAuto (void) {
event_handler_hook_add (eventHandlerAutoHook); event_handler_hook_use (eventHandlerAutoHook);
} }
void void

Loading…
Cancel
Save