mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 07:02:54 +08:00
I noticed in passing that in a very edge case scenario where the API's `run` thread doesn't run before it is loaded into the game, something could access it and get a guest `LocalUser` when the local user actually has a valid login. Put another way, the `protected HasLogin` could be `true` while `LocalUser` is `Guest`. I think we want to avoid this, so I've moved the initial set of the local user earlier in the initialisation process. If this is controversial in any way, the PR can be closed and we can assume no one is ever going to run into this scenario (or that it doesn't matter enough even if they did). |
||
---|---|---|
.. | ||
Requests | ||
APIAccess.cs | ||
APIDownloadRequest.cs | ||
APIException.cs | ||
APIMessagesRequest.cs | ||
APIMod.cs | ||
APIRequest.cs | ||
APIRequestCompletionState.cs | ||
ArchiveDownloadRequest.cs | ||
DummyAPIAccess.cs | ||
IAPIProvider.cs | ||
ModSettingsDictionaryFormatter.cs | ||
OAuth.cs | ||
OAuthToken.cs | ||
OsuJsonWebRequest.cs | ||
OsuWebRequest.cs | ||
RegistrationRequest.cs |