React to corefxlab changes (#1510)

* React to latest CoreFxLab changes
This commit is contained in:
David Fowler 2017-03-19 01:31:11 -07:00 committed by GitHub
parent f6e5e74d95
commit f1e0143d51
1 changed files with 3 additions and 1 deletions

View File

@ -301,7 +301,9 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Internal.Http
if (flushTask?.IsCompleted == false)
{
OnPausePosted();
if (await flushTask.Value)
var result = await flushTask.Value;
// If the reader isn't complete then resume
if (!result.IsCompleted)
{
OnResumePosted();
}