mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 00:53:19 +08:00
Fix API coming online too early in race scenarios.
This commit is contained in:
parent
00ddcb11b4
commit
d00ea4564f
@ -196,7 +196,10 @@ namespace osu.Game.Online.API
|
||||
Logger.Log($@"Performing request {req}", LoggingTarget.Network);
|
||||
req.Perform(this);
|
||||
|
||||
State = APIState.Online;
|
||||
//we could still be in initialisation, at which point we don't want to say we're Online yet.
|
||||
if (LocalUser.Value != null)
|
||||
State = APIState.Online;
|
||||
|
||||
failureCount = 0;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user