diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2018-04-30 17:19:39 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2018-04-30 17:19:39 +1200 |
commit | e8dac2d290e3a7a1b964c766f92b3f65bf72b0ce (patch) | |
tree | 4cb9c7648bbdaffb4ba0b2e684d74cefc885483e | |
parent | 236a2fb6fde4ff8837f85cf0a217f915b0bfed79 (diff) | |
download | mitmproxy-e8dac2d290e3a7a1b964c766f92b3f65bf72b0ce.tar.gz mitmproxy-e8dac2d290e3a7a1b964c766f92b3f65bf72b0ce.tar.bz2 mitmproxy-e8dac2d290e3a7a1b964c766f92b3f65bf72b0ce.zip |
client replay: revert our changes if replay is aborted
-rw-r--r-- | mitmproxy/addons/clientplayback.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/addons/clientplayback.py b/mitmproxy/addons/clientplayback.py index 305920da..15fa7394 100644 --- a/mitmproxy/addons/clientplayback.py +++ b/mitmproxy/addons/clientplayback.py @@ -172,6 +172,8 @@ class ClientPlayback: with self.q.mutex: lst = list(self.q.queue) self.q.queue.clear() + for f in lst: + f.revert() ctx.master.addons.trigger("update", lst) ctx.log.alert("Client replay queue cleared.") |