mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
call_soon->ensure_future
This commit is contained in:
parent
6d5c8781e2
commit
ab01406585
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user