1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 10:22:56 +08: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:
Dean Herbert 2020-11-02 15:52:57 +09:00
parent 8adf146f53
commit c9b96a1829

View File

@ -10,6 +10,7 @@ using JetBrains.Annotations;
using Microsoft.AspNetCore.SignalR.Client;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
@ -101,6 +102,10 @@ namespace osu.Game.Online.Spectator
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)
return;