mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Stop setting Online
state in handleRequest
This is already handled amicably by the `Failing` -> `Connecting` flow. Having this set in `handleRequest` throws things off, potentially leading to the `Online` state change before the user has been populated.
This commit is contained in:
parent
7ec67c28b9
commit
47196b19a5
@ -334,8 +334,7 @@ namespace osu.Game.Online.API
|
|||||||
if (req.CompletionState != APIRequestCompletionState.Completed)
|
if (req.CompletionState != APIRequestCompletionState.Completed)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// we could still be in initialisation, at which point we don't want to say we're Online yet.
|
// Reset failure count if this request succeeded.
|
||||||
if (IsLoggedIn) state.Value = APIState.Online;
|
|
||||||
failureCount = 0;
|
failureCount = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user