Skip to content

Commit cc3d8e7

Browse files
fix(core): Command::output suspend while wait for response (#8539)
* fix: Command::output suspend while wait for response * add change file --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio> Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent 8ce51ce commit cc3d8e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch:bug
3+
---
4+
5+
Fixes a deadlock when reading a stdout or stderr line returns an error.

core/tauri/src/api/process/command.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ fn spawn_pipe_reader<F: Fn(String) -> CommandEvent + Send + Copy + 'static>(
420420
Err(e) => {
421421
let tx_ = tx.clone();
422422
let _ = block_on_task(async move { tx_.send(CommandEvent::Error(e.to_string())).await });
423+
break;
423424
}
424425
}
425426
}

0 commit comments

Comments
 (0)