Merge pull request #581 from dantepippi/autodetach
Detach session when forced close detected (handling SIGTERM and other signals)
This commit is contained in:
commit
c046ab1ecc
1 changed files with 2 additions and 4 deletions
|
|
@ -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));
|
||||
}
|
||||
}),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue