Skip to content

Commit

Permalink
Сначала подписка, потом начало чтения.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilBeaver committed Mar 10, 2017
1 parent 2a80a9c commit 9cd77f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ScriptEngine.HostedScript/Library/ProcessOutputWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ public void StartReading()
if (_variant == OutputVariant.Stdout)
{
Encoding = _process.StartInfo.StandardOutputEncoding;
_process.BeginOutputReadLine();
_process.OutputDataReceived += StreamDataReceived;
_process.BeginOutputReadLine();
}
else
{
Encoding = _process.StartInfo.StandardErrorEncoding;
_process.BeginErrorReadLine();
_process.ErrorDataReceived += StreamDataReceived;
_process.BeginErrorReadLine();
}

AlreadyReading = true;
Expand Down

0 comments on commit 9cd77f6

Please sign in to comment.