mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
rework async utils to always use main event loop in threadsafe manner
This commit is contained in:
parent
747236ae8b
commit
65df111b87
2 changed files with 18 additions and 15 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue