Update usages of `SupportsJIT` in line with framework changes

This commit is contained in:
Salman Ahmed 2022-12-14 17:01:05 +03:00
parent 660cc72f2a
commit 5fbd4ad3b4
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR.Client;
@ -73,7 +74,7 @@ protected override Task<PersistentEndpointClient> BuildConnectionAsync(Cancellat
options.Headers.Add("OsuVersionHash", versionHash);
});
if (RuntimeInfo.SupportsJIT && preferMessagePack)
if (RuntimeFeature.IsDynamicCodeCompiled && preferMessagePack)
{
builder.AddMessagePackProtocol(options =>
{