From 85cd4eb8980c4875cfa2dbf4b460ee6a48d59cde Mon Sep 17 00:00:00 2001 From: ManickaP Date: Wed, 24 Jan 2024 15:43:46 +0100 Subject: [PATCH] Fix the fix :D --- .../System.Net.Quic/src/System/Net/Quic/QuicConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs b/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs index 7ec4e3f01c8212..db3adf776d542c 100644 --- a/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs +++ b/src/libraries/System.Net.Quic/src/System/Net/Quic/QuicConnection.cs @@ -539,7 +539,7 @@ private unsafe int HandleEventShutdownComplete() _acceptQueue.Writer.TryComplete(exception); _connectedTcs.TrySetException(exception); _shutdownTokenSource.Cancel(); - _shutdownTcs.TrySetResult(); + _shutdownTcs.TrySetResult(final: true); return QUIC_STATUS_SUCCESS; } private unsafe int HandleEventLocalAddressChanged(ref LOCAL_ADDRESS_CHANGED_DATA data)