mirror of https://github.com/ppy/osu
Fix API coming online too early in race scenarios.
This commit is contained in:
parent
00ddcb11b4
commit
d00ea4564f
|
@ -196,7 +196,10 @@ private bool handleRequest(APIRequest req)
|
||||||
Logger.Log($@"Performing request {req}", LoggingTarget.Network);
|
Logger.Log($@"Performing request {req}", LoggingTarget.Network);
|
||||||
req.Perform(this);
|
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;
|
failureCount = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue