Skip to content

Commit 71c5c66

Browse files
speigemkArtakMSFT
authored andcommitted
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.
1 parent 9557630 commit 71c5c66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Middleware/SpaServices.Extensions/src/Util/EventedStreamReader.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ private async Task Run()
8383
var chunkLength = await _streamReader.ReadAsync(buf, 0, buf.Length);
8484
if (chunkLength == 0)
8585
{
86+
if (_linesBuffer.Length > 0)
87+
{
88+
OnCompleteLine(_linesBuffer.ToString());
89+
_linesBuffer.Clear();
90+
}
91+
8692
OnClosed();
8793
break;
8894
}

0 commit comments

Comments
 (0)