mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix crash when duplicating flow
This commit is contained in:
parent
9a88594684
commit
a8f7c30aa0
@ -113,8 +113,8 @@ class Flow(stateobject.StateObject):
|
|||||||
def copy(self):
|
def copy(self):
|
||||||
f = super().copy()
|
f = super().copy()
|
||||||
f.id = str(uuid.uuid4())
|
f.id = str(uuid.uuid4())
|
||||||
f.live = False;
|
f.live = False
|
||||||
if self.reply != None:
|
if self.reply is not None:
|
||||||
f.reply = controller.DummyReply()
|
f.reply = controller.DummyReply()
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user