From ea460014ab502bb56515745a733f56246efcc237 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Fri, 18 Oct 2024 10:48:11 +0200 Subject: [PATCH] ssh remoting: Undo the spawning of message handlers (#19409) I suspect that this might have something to do with saving files not being possible after a while. I want to merge this and bump nightly. Release Notes: - N/A --- crates/remote/src/ssh_session.rs | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs index 6f9df8a4a342419d7a314d9829aa3f12509d4566..38bb6d05b71408ef3048ae4dc802c0c97647af13 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}"); }