From 52fdd8f2a2f22ac84ecfb268f6bda6d75976c230 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 8 Jun 2020 20:17:43 +0000 Subject: [PATCH] Sync shared code from runtime (#22619) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../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 dd42af8ff6..29fa4f871b 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 @@ namespace System.Net.Quic.Implementations.MsQuic.Internal 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 @@ namespace System.Net.Quic.Implementations.MsQuic.Internal { secConfig = new MsQuicSecurityConfig(this, securityConfig); secConfigCreateStatus = status; - tcs.SetResult(null); + tcs.SetResult(); } await tcs.Task.ConfigureAwait(false);