gui/state: fix asyncio loop management

This commit is contained in:
Sebastien Bourdeauducq 2023-01-12 12:41:08 +08:00
parent 5f77d4f5fa
commit 6d37d9d52c
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ def main():
# QDockWidgets fail to be embedded.
browser.show()
smgr.load()
smgr.start()
smgr.start(loop=loop)
atexit_register_coroutine(smgr.stop, loop=loop)
if args.select is not None:

View File

@ -232,7 +232,7 @@ def main():
# QDockWidgets fail to be embedded.
main_window.show()
smgr.load()
smgr.start()
smgr.start(loop=loop)
atexit_register_coroutine(smgr.stop, loop=loop)
# work around for https://github.com/m-labs/artiq/issues/1307