Sending the action Action::Detach to the server

This commit is contained in:
Dante Pippi 2021-06-18 12:26:29 -03:00
parent 18adbcc1b1
commit e7fc0e3ff9

View File

@ -210,11 +210,9 @@ pub fn start_client(
}
}),
Box::new({
let send_client_instructions = send_client_instructions.clone();
let os_api = os_input.clone();
move || {
send_client_instructions
.send(ClientInstruction::Exit(ExitReason::ForceDetached))
.unwrap()
os_api.send_to_server(ClientToServerMsg::Action(Action::Detach));
}
}),
);