Skip to content

Commit c0a9a8a

Browse files
committed
When waiting for build script, use WaitForExitAsync.Wait instead of WaitForExit
1 parent 612124f commit c0a9a8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BuildService.Shared/Build/BuildInstance.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private void startThread(EventWaitHandle waitHandle)
170170
ScriptProcess.BeginOutputReadLine();
171171
ScriptProcess.BeginErrorReadLine();
172172

173-
ScriptProcess.WaitForExit();
173+
ScriptProcess.WaitForExitAsync().Wait();
174174

175175
Status = BuildStatus.Done;
176176
TargetItem.CurrentBuildStatus = Status;

0 commit comments

Comments
 (0)