Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix panics from spawn_local tasks dropped on other threads in remote server (#21022)
Michael Sloanf74f67086595
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rsindex d8c852c0196..546135c30b3 100644--- a/crates/remote/src/ssh_session.rs+++ b/crates/remote/src/ssh_session.rs@@ -1074,7 +1074,7 @@ impl SshRemoteClient {c.connections.insert(opts.clone(),ConnectionPoolEntry::Connecting(- cx.foreground_executor()+ cx.background_executor().spawn({let connection = connection.clone();async move { Ok(connection.clone()) }