Skip to content

Commit 52fdd8f

Browse files
Sync shared code from runtime (#22619)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent a1360e9 commit 52fdd8f

File tree

1 file changed

+2
-2
lines changed
  • src/Shared/runtime/Quic/Implementations/MsQuic/Internal

1 file changed

+2
-2
lines changed

src/Shared/runtime/Quic/Implementations/MsQuic/Internal/MsQuicApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ internal unsafe uint UnsafeGetParam(
223223
public async ValueTask<MsQuicSecurityConfig?> CreateSecurityConfig(X509Certificate certificate, string? certFilePath, string? privateKeyFilePath)
224224
{
225225
MsQuicSecurityConfig? secConfig = null;
226-
var tcs = new TaskCompletionSource<object?>(TaskCreationOptions.RunContinuationsAsynchronously);
226+
var tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously);
227227
uint secConfigCreateStatus = MsQuicStatusCodes.InternalError;
228228
uint createConfigStatus;
229229
IntPtr unmanagedAddr = IntPtr.Zero;
@@ -283,7 +283,7 @@ void SecCfgCreateCallbackHandler(
283283
{
284284
secConfig = new MsQuicSecurityConfig(this, securityConfig);
285285
secConfigCreateStatus = status;
286-
tcs.SetResult(null);
286+
tcs.SetResult();
287287
}
288288

289289
await tcs.Task.ConfigureAwait(false);

0 commit comments

Comments
 (0)