mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
gui/state: fix asyncio loop management
This commit is contained in:
parent
5f77d4f5fa
commit
6d37d9d52c
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user