fix(bw): prevent script from re-opening itself (#5817)

This commit is contained in:
philmoz
2025-01-22 12:41:20 +10:00
committed by GitHub
parent 25dfd3b061
commit 20a7b30bbe
+1
View File
@@ -1207,6 +1207,7 @@ static bool resumeLua(bool init, bool allowLcdUsage)
lua_pop(lsScripts, 1); /* pop returned value */
if (scriptResult != 0) {
killAllEvents();
TRACE("Script finished with status %d", scriptResult);
luaState = INTERPRETER_RELOAD_PERMANENT_SCRIPTS;
}