1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 03:59:55 +08:00
Files
osu-lazer/osu.Game/Online/API
T
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).
f6073d4ac0 · 2025-01-14 17:43:43 +09:00
History
..
2024-08-30 13:41:34 +02:00
2023-06-24 01:00:03 +09:00
2024-01-30 21:05:23 +01:00
2022-06-17 16:37:17 +09:00
2023-06-24 01:00:03 +09:00
2023-06-24 01:00:03 +09:00