Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
gpui: Fix busyloop on X disconnect (#41986)
kitte6f571c1db76
diff --git a/crates/gpui_linux/src/linux/x11/client.rs b/crates/gpui_linux/src/linux/x11/client.rsindex 1f8db390029..77f154201d3 100644--- a/crates/gpui_linux/src/linux/x11/client.rs+++ b/crates/gpui_linux/src/linux/x11/client.rs@@ -602,6 +602,9 @@ impl X11Client {Ok(None) => {break;}+ Err(err @ ConnectionError::IoError(..)) => {+ return Err(EventHandlerError::from(err));+ }Err(err) => {let err = handle_connection_error(err);log::warn!("error while polling for X11 events: {err:?}");