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.

ssh remoting: Undo the spawning of message handlers (#19409)

Thorsten Ballea460014ab50
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs
index 6f9df8a4a34..38bb6d05b71 100644
--- a/crates/remote/src/ssh_session.rs
+++ b/crates/remote/src/ssh_session.rs
@@ -1526,19 +1526,16 @@ impl ChannelClient {
cx.clone(),
) {
log::debug!("ssh message received. name:{type_name}");
- cx.foreground_executor().spawn(async move {
- match future.await {
- Ok(_) => {
- log::debug!("ssh message handled. name:{type_name}");
- }
- Err(error) => {
- log::error!(
- "error handling message. type:{type_name}, error:{error}",
- );
- }
+ match future.await {
+ Ok(_) => {
+ log::debug!("ssh message handled. name:{type_name}");
}
- }).detach();
-
+ Err(error) => {
+ log::error!(
+ "error handling message. type:{type_name}, error:{error}",
+ );
+ }
+ }
} else {
log::error!("unhandled ssh message name:{type_name}");
}