Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove ping/unwrap from crash handler (#39870)

Conrad Irwince696c18ed7e
diff --git a/crates/crashes/src/crashes.rs b/crates/crashes/src/crashes.rs
index 4c8c6ec45e6..4a45961970c 100644
--- a/crates/crashes/src/crashes.rs
+++ b/crates/crashes/src/crashes.rs
@@ -92,7 +92,10 @@ pub async fn init(crash_init: InitCrashHandler) {
#[cfg(target_os = "macos")]
suspend_all_other_threads();
- client.ping().unwrap();
+ // on macos this "ping" is needed to ensure that all our
+ // `client.send_message` calls have been processed before we trigger the
+ // minidump request.
+ client.ping().ok();
client.request_dump(crash_context).is_ok()
} else {
true