Fixes #6306. Make StreamReader send last line's contents to listener, otherwise AngularCliBuilder doesn't know when build:ssr is complete (#13485)

Thanks for your effort.
This commit is contained in:
Devin Garner 2019-09-11 12:16:57 -06:00 committed by Artak
parent 9557630c0a
commit 71c5c66b21
1 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,12 @@ namespace Microsoft.AspNetCore.NodeServices.Util
var chunkLength = await _streamReader.ReadAsync(buf, 0, buf.Length);
if (chunkLength == 0)
{
if (_linesBuffer.Length > 0)
{
OnCompleteLine(_linesBuffer.ToString());
_linesBuffer.Clear();
}
OnClosed();
break;
}