Skip to content

Commit

Permalink
Don't send the server an exit signal when client panics (#1731)
Browse files Browse the repository at this point in the history
* Don't send the server an exit signal when client crashes

* Update changelog
  • Loading branch information
raphCode authored Sep 14, 2022
1 parent 31d7412 commit 65d12c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [Unreleased]

* debugging: Improve error handling in screen thread (https://github.com/zellij-org/zellij/pull/1670)
* fix: Server exits when client panics (https://github.com/zellij-org/zellij/pull/1731)

## [0.31.4] - 2022-09-09
* Terminal compatibility: improve vttest compliance (https://github.com/zellij-org/zellij/pull/1671)
Expand Down
3 changes: 1 addition & 2 deletions zellij-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use zellij_utils::{
data::{ClientId, InputMode, Style},
envs,
errors::{ClientContext, ContextType, ErrorInstruction},
input::{actions::Action, config::Config, options::Options},
input::{config::Config, options::Options},
ipc::{ClientAttributes, ClientToServerMsg, ExitReason, ServerToClientMsg},
termwiz::input::InputEvent,
};
Expand Down Expand Up @@ -356,7 +356,6 @@ pub fn start_client(
break;
},
ClientInstruction::Error(backtrace) => {
let _ = os_input.send_to_server(ClientToServerMsg::Action(Action::Quit, None));
handle_error(backtrace);
},
ClientInstruction::Render(output) => {
Expand Down

0 comments on commit 65d12c4

Please sign in to comment.