From 5f58046319ed5c5866a1489c1049a549f525230b Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Fri, 22 Jan 2021 14:41:36 +0100 Subject: [PATCH] Don't panic the window event handler thread on unexpected messages --- src/demon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/demon.rs b/src/demon.rs index 3742ea8..53b2831 100644 --- a/src/demon.rs +++ b/src/demon.rs @@ -25,7 +25,7 @@ pub fn monitor_window_events(win_props: Arc handle_window_event(win_ev, win_props.clone()), - Err(err) => panic!("{:?}", err), + Err(err) => eprintln!("Error handling window event:\n{:?}", err), } } }