From e7fc0e3ff92169b37797beff9744b8d14dadbe92 Mon Sep 17 00:00:00 2001 From: Dante Pippi <6619666+dantepippi@users.noreply.github.com> Date: Fri, 18 Jun 2021 12:26:29 -0300 Subject: [PATCH] Sending the action Action::Detach to the server --- zellij-client/src/lib.rs | 6 ++---- 1 file 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)); } }), );