fix loop not exiting after termination
This commit is contained in:
6
main.lua
6
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user