mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
exit instead of panicing when con to backend lost
This commit is contained in:
parent
4a6399f866
commit
af02cccc2a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue