fix loop not exiting after termination

This commit is contained in:
2026-06-25 16:13:09 -05:00
parent 0e1b932392
commit 9c137b3d20

View File

@@ -758,7 +758,9 @@ end
function Main()
Init()
while true do
local sentinel = true
while sentinel do
-- Update monitor displays
if Config.Monitors.InstrumentPanelMonitor then
displayInstrumentPanel(Config.Monitors.InstrumentPanelMonitor)
@@ -794,6 +796,8 @@ function Main()
local configFile = fs.open(Config.ConfigPath, "w+")
configFile.write(tableToString(Config))
configFile.close()
sentinel = false
else
return
end