We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58232e0 commit acb6b9bCopy full SHA for acb6b9b
src/libraries/System.Net.Quic/src/System/Net/Quic/Implementations/MsQuic/MsQuicStream.cs
@@ -1334,6 +1334,13 @@ private static uint HandleEventConnectionClose(State state)
1334
ExceptionDispatchInfo.SetCurrentStackTrace(GetConnectionAbortedException(state)));
1335
}
1336
1337
+ // Dispose was called before complete event.
1338
+ bool releaseHandles = Interlocked.Exchange(ref state.ShutdownDone, 2) == 1;
1339
+ if (releaseHandles)
1340
+ {
1341
+ state.Cleanup();
1342
+ }
1343
+
1344
return MsQuicStatusCodes.Success;
1345
1346
0 commit comments