1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 18:32:55 +08:00

Allow signalr to retry connecting when connection is closed without an exception

This commit is contained in:
Dean Herbert 2021-01-02 16:47:00 +09:00
parent 575a00dd7d
commit 72a6ca7755

View File

@ -88,11 +88,12 @@ namespace osu.Game.Online.Multiplayer
{ {
isConnected.Value = false; isConnected.Value = false;
if (ex != null) Logger.Log(ex != null
{ ? $"Multiplayer client lost connection: {ex}"
Logger.Log($"Multiplayer client lost connection: {ex}", LoggingTarget.Network); : "Multiplayer client disconnected", LoggingTarget.Network);
if (connection != null)
await tryUntilConnected(); await tryUntilConnected();
}
}; };
await tryUntilConnected(); await tryUntilConnected();