Merge pull request #581 from dantepippi/autodetach

Detach session when forced close detected (handling SIGTERM and other signals)
This commit is contained in:
Kunal Mohan 2021-06-19 11:15:26 +05:30 committed by GitHub
commit c046ab1ecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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::Normal))
.unwrap()
os_api.send_to_server(ClientToServerMsg::Action(Action::Detach));
}
}),
);