From e8dac2d290e3a7a1b964c766f92b3f65bf72b0ce Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 30 Apr 2018 17:19:39 +1200 Subject: client replay: revert our changes if replay is aborted --- mitmproxy/addons/clientplayback.py | 2 ++ 1 file changed, 2 insertions(+) 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.") -- cgit v1.2.3