You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Hotload.callOnMain(fn) runs fn on the mission's main Lua state and returns like pcall.
A timer armed from a script is called back on the script's coroutine and crashes DCS once that
coroutine has been collected; set up timers, event handlers and frameworks such as Skynet inside callOnMain instead. The skill says so in place of its advice to cancel such a timer.
A self-test for callOnMain, selftest/call-on-main: a timer armed through it keeps
beating after the ended run's coroutine has been collected. Run it after a DCS update.
The skill says how to drop an interrupted command: deleting only its outbox file runs it
again; deleting both its files drops it.