call_soon->ensure_future

This commit is contained in:
CorTal 2018-04-18 10:31:43 +02:00
parent 6d5c8781e2
commit ab01406585

View File

@ -235,7 +235,7 @@ class DumpFlows(RequestHandler):
self.view.clear()
bio = BytesIO(self.filecontents)
for i in io.FlowReader(bio).stream():
asyncio.call_soon(self.master.load_flow, i)
asyncio.ensure_future(self.master.load_flow(i))
bio.close()