diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2018-04-18 16:38:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 16:38:52 +0200 |
commit | f6b606b3643d0f447dac9830d25ac1853f8610fe (patch) | |
tree | 48a2bd6b032c2ba41ddbfdcf9e1f93e4e83a76f6 | |
parent | 6d5c8781e2894089e96c51bea2ce2158280e4374 (diff) | |
parent | ab014065853985a7618361f3343eda29d3d671ac (diff) | |
download | mitmproxy-f6b606b3643d0f447dac9830d25ac1853f8610fe.tar.gz mitmproxy-f6b606b3643d0f447dac9830d25ac1853f8610fe.tar.bz2 mitmproxy-f6b606b3643d0f447dac9830d25ac1853f8610fe.zip |
Merge pull request #3070 from CorTal/Fix#3066
Fix asyncio.call_soon -> asyncio.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() |