fix regression and tests
This commit is contained in:
parent
fa0a7e05c3
commit
dbc446ab55
1 changed files with 6 additions and 5 deletions
|
|
@ -258,11 +258,12 @@ pub fn start_server(os_input: Box<dyn ServerOsApi>, socket_path: PathBuf) {
|
||||||
}
|
}
|
||||||
ServerInstruction::Render(output) => {
|
ServerInstruction::Render(output) => {
|
||||||
if *session_state.read().unwrap() == SessionState::Attached {
|
if *session_state.read().unwrap() == SessionState::Attached {
|
||||||
os_input.send_to_client(
|
if let Some(op) = output {
|
||||||
output.map_or(ServerToClientMsg::Exit(ExitReason::Normal), |op| {
|
os_input.send_to_client(ServerToClientMsg::Render(op));
|
||||||
ServerToClientMsg::Render(op)
|
} else {
|
||||||
}),
|
os_input.send_to_client(ServerToClientMsg::Exit(ExitReason::Normal));
|
||||||
);
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ServerInstruction::Error(backtrace) => {
|
ServerInstruction::Error(backtrace) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue