From a4564adadd1f77850b92d772e58c6457e14ecc3c Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Tue, 10 Aug 2021 10:52:02 +0900 Subject: fix: Don't crash if language servers time out --- helix-term/src/application.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'helix-term') diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 9cd9ee7e..3d59c33a 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -527,7 +527,9 @@ impl Application { self.event_loop().await; - self.editor.close_language_servers(None).await?; + if self.editor.close_language_servers(None).await.is_err() { + log::error!("Timed out waiting for language servers to shutdown"); + }; self.restore_term()?; -- cgit v1.2.3-70-g09d2