1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-20 07:19:53 +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
Unverified
parent 00ddcb11b4
commit d00ea4564f
+4 -1
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;
}