From d872c3ab4dbea0bee8b91a58c0b360de0e95eefb Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 12 Jan 2023 12:16:53 +0800 Subject: [PATCH] aqctl_moninj_proxy: fix asyncio loop management --- artiq/frontend/aqctl_moninj_proxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/frontend/aqctl_moninj_proxy.py b/artiq/frontend/aqctl_moninj_proxy.py index fcf9e259d..d1e8774bd 100755 --- a/artiq/frontend/aqctl_moninj_proxy.py +++ b/artiq/frontend/aqctl_moninj_proxy.py @@ -219,8 +219,8 @@ def main(): loop.run_until_complete(server.start(bind_address, args.port_control)) try: _, pending = loop.run_until_complete(asyncio.wait( - [signal_handler.wait_terminate(), - server.wait_terminate(), + [loop.create_task(signal_handler.wait_terminate()), + loop.create_task(server.wait_terminate()), comm_moninj.wait_terminate()], return_when=asyncio.FIRST_COMPLETED)) for task in pending: