Skip to content

Commit bf47ac0

Browse files
authored
Unload MsQuic unconditionally
1 parent fee1c6d commit bf47ac0

File tree

1 file changed

+2
-4
lines changed
  • src/libraries/System.Net.Quic/src/System/Net/Quic/Internal

1 file changed

+2
-4
lines changed

src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,8 @@ static MsQuicApi()
127127
}
128128
finally
129129
{
130-
if (!IsQuicSupported)
131-
{
132-
NativeLibrary.Free(msQuicHandle);
133-
}
130+
// Unload the library, we will load it again when we actually use QUIC
131+
NativeLibrary.Free(msQuicHandle);
134132
}
135133
}
136134

0 commit comments

Comments
 (0)