From 69ec125dcb2db03c95c7613932f031621f2d9b49 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 6 Jun 2020 08:07:27 +0000 Subject: [PATCH] Sync shared code from runtime --- .../runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shared/runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs b/src/Shared/runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs index dd42af8ff614..29fa4f871b38 100644 --- a/src/Shared/runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs +++ b/src/Shared/runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs @@ -223,7 +223,7 @@ internal unsafe uint UnsafeGetParam( public async ValueTask CreateSecurityConfig(X509Certificate certificate, string? certFilePath, string? privateKeyFilePath) { MsQuicSecurityConfig? secConfig = null; - var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); uint secConfigCreateStatus = MsQuicStatusCodes.InternalError; uint createConfigStatus; IntPtr unmanagedAddr = IntPtr.Zero; @@ -283,7 +283,7 @@ void SecCfgCreateCallbackHandler( { secConfig = new MsQuicSecurityConfig(this, securityConfig); secConfigCreateStatus = status; - tcs.SetResult(null); + tcs.SetResult(); } await tcs.Task.ConfigureAwait(false);