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
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

Loading…
Cancel
Save