Stop server playback after current playback buffer is exhausted.

This commit is contained in:
Aldo Cortesi 2012-08-18 00:23:41 +12:00
parent 20b270ae9a
commit 1bfe847a84
3 changed files with 4 additions and 2 deletions

View File

@ -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
)

View File

@ -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
)

View File

@ -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