diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-22 20:26:43 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-22 22:19:50 +0530 |
commit | 62a2d9cff2780262d76938d2f3364464b559e0ec (patch) | |
tree | effb14fb1702cc696ab9bb0a6995b39e6346a3e5 /zellij-client | |
parent | dbc446ab556c44aa62985728c26572011997ce98 (diff) |
join router threads on exit
Diffstat (limited to 'zellij-client')
-rw-r--r-- | zellij-client/src/lib.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/zellij-client/src/lib.rs b/zellij-client/src/lib.rs index 7042bed72..45b60d44a 100644 --- a/zellij-client/src/lib.rs +++ b/zellij-client/src/lib.rs @@ -241,12 +241,10 @@ pub fn start_client( err_ctx.add_call(ContextType::Client((&client_instruction).into())); match client_instruction { ClientInstruction::Exit(reason) => { - match reason { - ExitReason::Error(_) => handle_error(format!("{}", reason)), - ExitReason::ForceDetached => { - os_input.send_to_server(ClientToServerMsg::ClientDetached); - } - _ => {} + os_input.send_to_server(ClientToServerMsg::ClientExited); + + if let ExitReason::Error(_) = reason { + handle_error(format!("{}", reason)); } exit_msg = format!("{}", reason); break; |