1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 13:27:20 +08:00

Fix compile time failure due to potentially null connection

This commit is contained in:
Dean Herbert 2020-12-22 15:15:32 +09:00
parent 81e2edc73f
commit 3f966386ed

View File

@ -4,6 +4,7 @@
#nullable enable
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR.Client;
@ -99,6 +100,8 @@ namespace osu.Game.Online.RealtimeMultiplayer
{
try
{
Debug.Assert(connection != null);
// reconnect on any failure
await connection.StartAsync();
Logger.Log("Multiplayer client connected!", LoggingTarget.Network);