Permalink
Browse files

Streaming: cannot wait, no output then, closes #1

  • Loading branch information...
gaborcsardi committed Sep 13, 2016
1 parent e4b98b0 commit ac9d4fc3e7e7f3edda06d08a0a432659404bd1f9
Showing with 3 additions and 1 deletion.
  1. +3 −1 run.ps1
View
@@ -115,7 +115,9 @@ $ErrEvent = Register-ObjectEvent `
$Process.BeginOutputReadLine()
$Process.BeginErrorReadLine()
$Process.WaitForExit()
do {
Start-Sleep 1
} while (!$Process.HasExited)
# Unregister events
$OutEvent.Name, $ErrEvent.Name |

0 comments on commit ac9d4fc

Please sign in to comment.