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":
|
elif k == "S":
|
||||||
if not self.server_playback:
|
if not self.server_playback:
|
||||||
self.path_prompt(
|
self.path_prompt(
|
||||||
"Server replay: ",
|
"Server replay path: ",
|
||||||
self.state.last_saveload,
|
self.state.last_saveload,
|
||||||
self.server_playback_path
|
self.server_playback_path
|
||||||
)
|
)
|
||||||
|
|
|
@ -146,7 +146,7 @@ class ConnectionItem(common.WWrap):
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
self.master.path_prompt(
|
self.master.path_prompt(
|
||||||
"Server replay: ",
|
"Server replay path: ",
|
||||||
self.state.last_saveload,
|
self.state.last_saveload,
|
||||||
self.master.server_playback_path
|
self.master.server_playback_path
|
||||||
)
|
)
|
||||||
|
|
|
@ -1317,6 +1317,8 @@ class FlowMaster(controller.Master):
|
||||||
if self.refresh_server_playback:
|
if self.refresh_server_playback:
|
||||||
response.refresh()
|
response.refresh()
|
||||||
flow.request._ack(response)
|
flow.request._ack(response)
|
||||||
|
if self.server_playback.count() == 0:
|
||||||
|
self.stop_server_playback()
|
||||||
return True
|
return True
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue