aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/controller.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mitmproxy/controller.py b/mitmproxy/controller.py
index 582a6683..6e219066 100644
--- a/mitmproxy/controller.py
+++ b/mitmproxy/controller.py
@@ -113,6 +113,8 @@ class Reply:
def kill(self, force=False):
self.send(exceptions.Kill, force)
+ if self._state == "taken":
+ self.commit()
def send(self, msg, force=False):
if self.state not in {"start", "taken"}: