From 3ea6d01832e74c63b9916eed5dd020b97c541cc7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 7 Jun 2020 08:06:42 +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);