From 6d37d9d52cc2140f19f59b4b22cdda434f04cbdd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 12 Jan 2023 12:41:08 +0800 Subject: [PATCH] gui/state: fix asyncio loop management --- artiq/frontend/artiq_browser.py | 2 +- artiq/frontend/artiq_dashboard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index 853b8ed31..398244b0e 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -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: diff --git a/artiq/frontend/artiq_dashboard.py b/artiq/frontend/artiq_dashboard.py index e6ea6ad0a..033d58ee7 100755 --- a/artiq/frontend/artiq_dashboard.py +++ b/artiq/frontend/artiq_dashboard.py @@ -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