summaryrefslogtreecommitdiffstats
path: root/Controler-afb/ctl-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'Controler-afb/ctl-binding.c')
-rw-r--r--Controler-afb/ctl-binding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Controler-afb/ctl-binding.c b/Controler-afb/ctl-binding.c
index 19f97eb..554199b 100644
--- a/Controler-afb/ctl-binding.c
+++ b/Controler-afb/ctl-binding.c
@@ -69,7 +69,8 @@ PUBLIC int CtlBindingInit () {
errcount += LuaLibInit();
// now that everything is initialised execute the onload action
- errcount += DispatchOneOnLoad(CONTROL_ONLOAD_DEFAULT);
+ if (!errcount)
+ errcount += DispatchOneOnLoad(CONTROL_ONLOAD_DEFAULT);
AFB_DEBUG ("Audio Policy Control Binding Done errcount=%d", errcount);
return errcount;