mirror of https://github.com/m-labs/artiq.git
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))
|
loop.run_until_complete(subscriber.connect(host, port))
|
||||||
try:
|
try:
|
||||||
_, pending = loop.run_until_complete(asyncio.wait(
|
_, 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))
|
return_when=asyncio.FIRST_COMPLETED))
|
||||||
for task in pending:
|
for task in pending:
|
||||||
task.cancel()
|
task.cancel()
|
||||||
|
|
Loading…
Reference in New Issue