Skip to content

Commit

Permalink
Adds back exception handling for stream closure in server
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Sep 20, 2018
1 parent 964ac91 commit 52a3068
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/MsBuildPipeLogger.Server/PipeLoggerServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,20 @@ public bool Read()
return false;
}

BuildEventArgs args = _buildEventArgsReader.Read();
if (args != null)
try
{
Dispatch(args);
return true;
BuildEventArgs args = _buildEventArgsReader.Read();
if (args != null)
{
Dispatch(args);
return true;
}
}
catch (EndOfStreamException)
{
// Nothing else to read
}

return false;
}

Expand Down

0 comments on commit 52a3068

Please sign in to comment.