Merge pull request #11401 from peppy/fix-signalr-reconnect

Allow signalr to retry connecting when connection is closed without an exception
This commit is contained in:
Dean Herbert
2021-01-02 21:50:29 +09:00
committed by GitHub

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();