fix(shell): deadlock on read line error (#923)

This commit is contained in:
Lucas Fernandes Nogueira
2024-02-01 00:01:23 -03:00
committed by GitHub
parent 18cb861b52
commit 15dc7060e8
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"shell": patch
---
Fixes a deadlock when reading a stdout or stderr line returns an error.
+1
View File
@@ -385,6 +385,7 @@ fn spawn_pipe_reader<F: Fn(Vec<u8>) -> CommandEvent + Send + Copy + 'static>(
block_on_task(
async move { tx_.send(CommandEvent::Error(e.to_string())).await },
);
break;
}
}
}