forked from M-Labs/artiq
aqctl_moninj_proxy: fix asyncio loop management
This commit is contained in:
parent
f8d93813e9
commit
d872c3ab4d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue