rework async utils to always use main event loop in threadsafe manner

This commit is contained in:
liamcottle 2025-07-28 19:01:15 +12:00
commit 65df111b87
2 changed files with 18 additions and 15 deletions

View file

@ -2038,6 +2038,9 @@ class ReticulumMeshChat:
# called when web app has started
async def on_startup(app):
# remember main event loop
AsyncUtils.set_main_loop(asyncio.get_event_loop())
# auto launch web browser
if launch_browser:
try: