mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
artiq_client: fix deprecated wait usage
This commit is contained in:
parent
332c9c0fcd
commit
7e6ed1655f
@ -307,7 +307,7 @@ def _run_subscriber(host, port, subscriber):
|
||||
loop.run_until_complete(subscriber.connect(host, port))
|
||||
try:
|
||||
_, pending = loop.run_until_complete(asyncio.wait(
|
||||
[signal_handler.wait_terminate(), subscriber.receive_task],
|
||||
[loop.create_task(signal_handler.wait_terminate()), subscriber.receive_task],
|
||||
return_when=asyncio.FIRST_COMPLETED))
|
||||
for task in pending:
|
||||
task.cancel()
|
||||
|
Loading…
Reference in New Issue
Block a user