Sync with runtime (#19314)

This commit is contained in:
Justin Kotalik 2020-02-25 09:13:11 -08:00 committed by GitHub
parent 6e6ea5b6d4
commit 78ce7b6dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ namespace System.Net.Quic.Implementations.MsQuic
{
ThrowIfDisposed();
return ReadAsync(buffer.ToArray()).GetAwaiter().GetResult();
return ReadAsync(buffer.ToArray()).AsTask().GetAwaiter().GetResult();
}
internal override void Write(ReadOnlySpan<byte> buffer)
@ -410,7 +410,7 @@ namespace System.Net.Quic.Implementations.MsQuic
ThrowIfDisposed();
// TODO: optimize this.
WriteAsync(buffer.ToArray()).GetAwaiter().GetResult();
WriteAsync(buffer.ToArray()).AsTask().GetAwaiter().GetResult();
}
// MsQuic doesn't support explicit flushing