fix attempt 2 of the terminate check stopping the mainloop

This commit is contained in:
2026-06-25 15:37:42 -05:00
parent 4f874af256
commit 9170eebd4e

View File

@@ -780,7 +780,9 @@ function Main()
event = os.pullEventRaw("terminate")
end
parallel.waitForAny(os.sleep(0.1), getTerminateEvent)
local function do_sleep() os.sleep(0.1) end
parallel.waitForAny(do_sleep, getTerminateEvent)
if event == "terminate" then print("Terminate Event Received") break end
end