From e1587b331401e66e97fd6659dd8d938b58998752 Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Fri, 28 Aug 2015 09:54:13 +0200 Subject: [PATCH] BUG/MEDIUM: lua: cannot process more Lua hooks after a "done()" function call When the Lua execution flow endswith the command done (core.done or txn.done()) an error is detourned, and the stack is no longer usable. This patch juste reinitilize the stack if this case is detected. --- src/hlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hlua.c b/src/hlua.c index e98a28d12..2def3d47f 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -1000,6 +1000,7 @@ timeout_reached: */ if (lua->flags & HLUA_EXIT) { ret = HLUA_E_OK; + hlua_ctx_renew(lua, 0); break; }