fix(color): fix EM crashes when shutting down Lua states (#6337)

This commit is contained in:
philmoz
2025-06-13 11:08:54 +10:00
committed by GitHub
parent ea6c28c8ea
commit 5c04801162
8 changed files with 106 additions and 92 deletions
+3
View File
@@ -1119,6 +1119,8 @@ void edgeTxResume()
TRACE("edgeTxResume");
if (!sdMounted()) sdInit();
luaInitMainState();
#if defined(COLORLCD) && defined(LUA)
// reload widgets
luaInitThemesAndWidgets();
@@ -1441,6 +1443,7 @@ void edgeTxInit()
logsInit();
}
luaInitMainState();
#if defined(COLORLCD) && defined(LUA)
if (!UNEXPECTED_SHUTDOWN()) {
// lua widget state must be prepared before the call to storageReadAll()