1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-08 07:02:54 +08:00
osu-lazer/osu.Game/Online/API
Dean Herbert f6073d4ac0
Ensure API starts up with LocalUser in correct state
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).
2025-01-14 17:43:43 +09:00
..
Requests Merge branch 'master' into close-playlists 2024-11-28 14:01:36 +01:00
APIAccess.cs Ensure API starts up with LocalUser in correct state 2025-01-14 17:43:43 +09:00
APIDownloadRequest.cs Fix NRT inspections 2024-08-30 13:41:34 +02:00
APIException.cs Fix remaining obvious CI inspections 2023-06-24 16:07:01 +02:00
APIMessagesRequest.cs Automated pass 2023-06-24 01:00:03 +09:00
APIMod.cs Fix the MOTHERLOAD of undetected issues that are now visible thanks to net6.0 2022-12-16 18:16:26 +09:00
APIRequest.cs Trigger request failure on receiving a null response for a typed APIRequest 2024-09-05 01:00:23 +09:00
APIRequestCompletionState.cs Remove redundant nullable suppression directives 2023-06-07 08:20:41 +03:00
ArchiveDownloadRequest.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
DummyAPIAccess.cs Merge branch 'master' into user-statistics-provider 2024-11-13 15:21:55 +09:00
IAPIProvider.cs Merge branch 'master' into user-statistics-provider 2024-11-13 15:21:55 +09:00
ModSettingsDictionaryFormatter.cs Appease message pack new inspections 2025-01-08 03:13:29 +09:00
OAuth.cs Fix broken locking in OAuth 2024-01-30 21:05:23 +01:00
OAuthToken.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuJsonWebRequest.cs Automated pass 2023-06-24 01:00:03 +09:00
OsuWebRequest.cs Automated pass 2023-06-24 01:00:03 +09:00
RegistrationRequest.cs Add API level support for error message and redirect during registration flow 2023-01-13 15:32:53 +09:00