mirror of
https://github.com/mitmproxy/mitmproxy.git
synced 2024-12-12 15:46:08 +00:00
fix client playback logic
This commit is contained in:
parent
5c8e7a090e
commit
5c333ee3ba
@ -816,11 +816,12 @@ class FlowMaster(controller.Master):
|
||||
self.client_playback.done() and
|
||||
self.state.active_flow_count() == 0
|
||||
)
|
||||
exit = stop and self.client_playback.exit
|
||||
exit = self.client_playback.exit
|
||||
if stop:
|
||||
self.stop_client_playback()
|
||||
if exit:
|
||||
self.shutdown()
|
||||
else:
|
||||
self.client_playback.tick(self)
|
||||
|
||||
if self.server_playback:
|
||||
@ -828,7 +829,7 @@ class FlowMaster(controller.Master):
|
||||
self.server_playback.count() == 0 and
|
||||
self.state.active_flow_count() == 0
|
||||
)
|
||||
exit = stop and self.server_playback.exit
|
||||
exit = self.server_playback.exit
|
||||
if stop:
|
||||
self.stop_server_playback()
|
||||
if exit:
|
||||
|
Loading…
Reference in New Issue
Block a user