mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +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):
|
def kill(self, force=False):
|
||||||
self.send(exceptions.Kill, force)
|
self.send(exceptions.Kill, force)
|
||||||
|
if self._state == "taken":
|
||||||
|
self.commit()
|
||||||
|
|
||||||
def send(self, msg, force=False):
|
def send(self, msg, force=False):
|
||||||
if self.state not in {"start", "taken"}:
|
if self.state not in {"start", "taken"}:
|
||||||
|
Loading…
Reference in New Issue
Block a user