mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Make certain that async stdout streams are fully read with
This commit is contained in:
@@ -134,6 +134,9 @@ public static class Exe
|
||||
ct.ThrowIfCancellationRequested();
|
||||
}
|
||||
|
||||
// need to call this once more to wait for the streams to finish. if WaitForExit is called with a timeout, the streams will not be fully read.
|
||||
process.WaitForExit();
|
||||
|
||||
return (process.ExitCode, sOut.ToString().Trim(), sErr.ToString().Trim());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user