1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Fix API coming online too early in race scenarios.

This commit is contained in:
Dean Herbert 2017-02-22 14:09:48 +09:00
parent 00ddcb11b4
commit d00ea4564f
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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;
}