forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 2 additions and 2 deletions

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: