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

pull/862/head
Lucas Fernandes Nogueira 1 year ago committed by GitHub
parent 18cb861b52
commit 15dc7060e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"shell": patch
---
Fixes a deadlock when reading a stdout or stderr line returns an error.

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

Loading…
Cancel
Save