mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:43:04 +08:00
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:
commit
33d8d60717
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user