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
This commit is contained in:
Thorsten Ball 2024-10-18 10:48:11 +02:00 committed by GitHub
parent 5168fc27a1
commit ea460014ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}");
}