mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 12:37:45 +08:00
Fix compile time failure due to potentially null connection
This commit is contained in:
parent
81e2edc73f
commit
3f966386ed
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user