diff options
| author | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-06-18 12:26:29 -0300 |
|---|---|---|
| committer | Dante Pippi <6619666+dantepippi@users.noreply.github.com> | 2021-06-18 12:26:29 -0300 |
| commit | e7fc0e3ff92169b37797beff9744b8d14dadbe92 (patch) | |
| tree | a6fa7591e1db18ab7860c97347609de06e34f7fc | |
| parent | Detach session on a forced close (handlign SIGTERM and other signals) (diff) | |
| download | sl0ppij-e7fc0e3ff92169b37797beff9744b8d14dadbe92.tar.gz sl0ppij-e7fc0e3ff92169b37797beff9744b8d14dadbe92.tar.xz sl0ppij-e7fc0e3ff92169b37797beff9744b8d14dadbe92.zip | |
Sending the action Action::Detach to the server
| -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 3e7ed7ab..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::ForceDetached)) - .unwrap() + os_api.send_to_server(ClientToServerMsg::Action(Action::Detach)); } }), ); |
