fix wait for spawn future

asyncio.wait takes a list
This commit is contained in:
Min RK
2018-04-09 11:16:17 +02:00
parent a3ed387455
commit c0f37c48a1

View File

@@ -349,7 +349,7 @@ class SpawnProgressAPIHandler(APIHandler):
if spawner._spawn_pending:
# wait for spawn_future to complete
# (ignore errors, which will be logged elsewhere)
await asyncio.wait(spawn_future)
await asyncio.wait([spawn_future])
# progress and spawn finished, check if spawn succeeded
if spawner.ready: