diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2021-06-19 11:15:26 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-19 11:15:26 +0530 |
| commit | c046ab1ecc928a036f0c72c9346b71f07aa13749 (patch) | |
| tree | a6fa7591e1db18ab7860c97347609de06e34f7fc | |
| parent | Merge pull request #580 from a-kenji/makefile-layout-fix (diff) | |
| parent | Sending the action Action::Detach to the server (diff) | |
| download | sl0ppij-c046ab1ecc928a036f0c72c9346b71f07aa13749.tar.gz sl0ppij-c046ab1ecc928a036f0c72c9346b71f07aa13749.tar.xz sl0ppij-c046ab1ecc928a036f0c72c9346b71f07aa13749.zip | |
Merge pull request #581 from dantepippi/autodetach
Detach session when forced close detected (handling SIGTERM and other signals)
| -rw-r--r-- | zellij-client/src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 83121b67..e29bd165 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -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)); } }), ); |
