forked from M-Labs/artiq
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.
|
# QDockWidgets fail to be embedded.
|
||||||
browser.show()
|
browser.show()
|
||||||
smgr.load()
|
smgr.load()
|
||||||
smgr.start()
|
smgr.start(loop=loop)
|
||||||
atexit_register_coroutine(smgr.stop, loop=loop)
|
atexit_register_coroutine(smgr.stop, loop=loop)
|
||||||
|
|
||||||
if args.select is not None:
|
if args.select is not None:
|
||||||
|
|
|
@ -232,7 +232,7 @@ def main():
|
||||||
# QDockWidgets fail to be embedded.
|
# QDockWidgets fail to be embedded.
|
||||||
main_window.show()
|
main_window.show()
|
||||||
smgr.load()
|
smgr.load()
|
||||||
smgr.start()
|
smgr.start(loop=loop)
|
||||||
atexit_register_coroutine(smgr.stop, loop=loop)
|
atexit_register_coroutine(smgr.stop, loop=loop)
|
||||||
|
|
||||||
# work around for https://github.com/m-labs/artiq/issues/1307
|
# work around for https://github.com/m-labs/artiq/issues/1307
|
||||||
|
|
Loading…
Reference in New Issue