diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs index 6f9df8a4a3..38bb6d05b7 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}"); }