2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

aqctl_moninj_proxy: fix asyncio loop management

This commit is contained in:
Sebastien Bourdeauducq 2023-01-12 12:16:53 +08:00
parent f8d93813e9
commit d872c3ab4d

View File

@ -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: