From ab014065853985a7618361f3343eda29d3d671ac Mon Sep 17 00:00:00 2001 From: CorTal Date: Wed, 18 Apr 2018 10:31:43 +0200 Subject: [PATCH] call_soon->ensure_future --- mitmproxy/tools/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index 61e30a213..184778b08 100644 --- a/mitmproxy/tools/web/app.py +++ b/mitmproxy/tools/web/app.py @@ -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()