fix attempt 2 of the terminate check stopping the mainloop
This commit is contained in:
4
main.lua
4
main.lua
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user