fix terminal disconnect

This commit is contained in:
mbecker20
2025-10-27 21:04:46 -07:00
parent 3e3def03ec
commit a3bc895755
7 changed files with 37 additions and 24 deletions
+2 -1
View File
@@ -251,7 +251,8 @@ async fn handle_terminal_forwarding<
future_or_cancel(ws_read.receive_stdout(), &cancel).await
{
let bytes = match msg {
Ok(bytes) => bytes,
Ok(Some(bytes)) => bytes,
Ok(None) => break,
Err(e) => {
cancel.cancel();
return Some(e.context("Websocket read error"));