fix loop not exiting after termination
This commit is contained in:
6
main.lua
6
main.lua
@@ -758,7 +758,9 @@ end
|
|||||||
function Main()
|
function Main()
|
||||||
Init()
|
Init()
|
||||||
|
|
||||||
while true do
|
local sentinel = true
|
||||||
|
while sentinel do
|
||||||
|
|
||||||
-- Update monitor displays
|
-- Update monitor displays
|
||||||
if Config.Monitors.InstrumentPanelMonitor then
|
if Config.Monitors.InstrumentPanelMonitor then
|
||||||
displayInstrumentPanel(Config.Monitors.InstrumentPanelMonitor)
|
displayInstrumentPanel(Config.Monitors.InstrumentPanelMonitor)
|
||||||
@@ -794,6 +796,8 @@ function Main()
|
|||||||
local configFile = fs.open(Config.ConfigPath, "w+")
|
local configFile = fs.open(Config.ConfigPath, "w+")
|
||||||
configFile.write(tableToString(Config))
|
configFile.write(tableToString(Config))
|
||||||
configFile.close()
|
configFile.close()
|
||||||
|
|
||||||
|
sentinel = false
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user