From 13d08b73eb99741ca5903e8414b85a1d0b919594 Mon Sep 17 00:00:00 2001 From: Thierry Fournier Date: Sat, 28 Nov 2020 11:02:58 +0100 Subject: [PATCH] BUG/MINOR: lua: Post init register function are not executed beyond the first one Just because if the first init is a success we return success in place of continuing the loop. This patch could be backported until 1.8 --- src/hlua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hlua.c b/src/hlua.c index 49db0f36e..e1c316bd6 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -8128,7 +8128,7 @@ int hlua_post_init() switch (ret) { case HLUA_E_OK: lua_pop(gL.T, -1); - return 1; + break; case HLUA_E_AGAIN: ha_alert("Lua init: yield not allowed.\n"); return 0;