diff options
author | CorTal <corentintalarmain@gmail.com> | 2018-04-18 10:31:43 +0200 |
---|---|---|
committer | CorTal <corentintalarmain@gmail.com> | 2018-04-18 10:31:43 +0200 |
commit | ab014065853985a7618361f3343eda29d3d671ac (patch) | |
tree | 48a2bd6b032c2ba41ddbfdcf9e1f93e4e83a76f6 | |
parent | 6d5c8781e2894089e96c51bea2ce2158280e4374 (diff) | |
download | mitmproxy-ab014065853985a7618361f3343eda29d3d671ac.tar.gz mitmproxy-ab014065853985a7618361f3343eda29d3d671ac.tar.bz2 mitmproxy-ab014065853985a7618361f3343eda29d3d671ac.zip |
call_soon->ensure_future
-rw-r--r-- | mitmproxy/tools/web/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/tools/web/app.py b/mitmproxy/tools/web/app.py index 61e30a21..184778b0 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() |