Skip to content

Commit

Permalink
exit instead of panicing when con to backend lost
Browse files Browse the repository at this point in the history
  • Loading branch information
feschber committed Mar 21, 2024
1 parent 4a6399f commit af02ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/gtk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ fn build_ui(app: &Application) {
window.imp().stream.borrow_mut().replace(tx);
glib::spawn_future_local(clone!(@weak window => async move {
loop {
let notify = receiver.recv().await.unwrap();
let notify = receiver.recv().await.unwrap_or_else(|_| process::exit(1));
match notify {
FrontendNotify::NotifyClientActivate(handle, active) => {
window.activate_client(handle, active);
Expand Down

0 comments on commit af02ccc

Please sign in to comment.