mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
Commit taken messages on kill
Fixes 2879
This commit is contained in:
parent
9f83b6b944
commit
260f729092
@ -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"}:
|
||||
|
Loading…
Reference in New Issue
Block a user