mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
Stop server playback after current playback buffer is exhausted.
This commit is contained in:
parent
20b270ae9a
commit
1bfe847a84
@ -868,7 +868,7 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
elif k == "S":
|
||||
if not self.server_playback:
|
||||
self.path_prompt(
|
||||
"Server replay: ",
|
||||
"Server replay path: ",
|
||||
self.state.last_saveload,
|
||||
self.server_playback_path
|
||||
)
|
||||
|
@ -146,7 +146,7 @@ class ConnectionItem(common.WWrap):
|
||||
)
|
||||
else:
|
||||
self.master.path_prompt(
|
||||
"Server replay: ",
|
||||
"Server replay path: ",
|
||||
self.state.last_saveload,
|
||||
self.master.server_playback_path
|
||||
)
|
||||
|
@ -1317,6 +1317,8 @@ class FlowMaster(controller.Master):
|
||||
if self.refresh_server_playback:
|
||||
response.refresh()
|
||||
flow.request._ack(response)
|
||||
if self.server_playback.count() == 0:
|
||||
self.stop_server_playback()
|
||||
return True
|
||||
return None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user