From 72e513ecbdf8273c89d8a79b518d9d0fbedb3f90 Mon Sep 17 00:00:00 2001 From: Jeija Date: Mon, 14 Mar 2016 12:51:57 +0100 Subject: [PATCH] Luacontroller: Put clearing debug hook before throwing error back in --- mesecons_luacontroller/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 7d15e30..7df2bdc 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -209,6 +209,7 @@ end -- the server. Therefore, limit max. length of generated string. local function safe_string_rep(str, n) if #str * n > mesecon.setting("luacontroller_string_rep_max", 64000) then + debug.sethook() -- Clear hook error("string.rep: string length overflow", 2) end @@ -348,6 +349,7 @@ end local function timeout() + debug.sethook() -- Clear hook error("Code timed out!", 2) end