mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +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()
|
self.view.clear()
|
||||||
bio = BytesIO(self.filecontents)
|
bio = BytesIO(self.filecontents)
|
||||||
for i in io.FlowReader(bio).stream():
|
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()
|
bio.close()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user