mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Disable spectator streaming connection logic on iOS to avoid startup crash
Due to an [issue](https://github.com/dotnet/runtime/issues/35988) at xamarin's end (which *should* have been fixed via [this pr](https://github.com/xamarin/xamarin-macios/pull/8615) but still fails on latest preview release) we can't support this just yet.
This commit is contained in:
@ -10,6 +10,7 @@ using JetBrains.Annotations;
|
|||||||
using Microsoft.AspNetCore.SignalR.Client;
|
using Microsoft.AspNetCore.SignalR.Client;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using osu.Framework;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -101,6 +102,10 @@ namespace osu.Game.Online.Spectator
|
|||||||
|
|
||||||
private async Task connect()
|
private async Task connect()
|
||||||
{
|
{
|
||||||
|
if (RuntimeInfo.OS == RuntimeInfo.Platform.iOS)
|
||||||
|
// disabled for now (see https://github.com/dotnet/runtime/issues/35988)
|
||||||
|
return;
|
||||||
|
|
||||||
if (connection != null)
|
if (connection != null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user