Skip to content

Commit

Permalink
fix(bw): prevent script from re-opening itself (#5817)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Jan 22, 2025
1 parent 25dfd3b commit 20a7b30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions radio/src/lua/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20a7b30

Please sign in to comment.