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:
parent
9557630c0a
commit
71c5c66b21
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue