Merge pull request #377 from benaadams/legacy

Result -> GetAwaiter().GetResult() for legacy
This commit is contained in:
David Fowler 2015-11-16 12:13:45 -08:00
commit 7ba0f7da19
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
public override int EndRead(IAsyncResult asyncResult)
{
return ((Task<int>)asyncResult).Result;
return ((Task<int>)asyncResult).GetAwaiter().GetResult();
}
private Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken, object state)