Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix replays not correctly pre-importing beatmap when arriving from a cold start #31508

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions osu.Game/Online/API/APIAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,14 @@ public APIAccess(OsuGameBase game, OsuConfigManager config, EndpointConfiguratio

config.BindWith(OsuSetting.UserOnlineStatus, configStatus);

// Early call to ensure the local user / "logged in" state is correct immediately.
setPlaceholderLocalUser();
if (HasLogin)
{
// Early call to ensure the local user / "logged in" state is correct immediately.
setPlaceholderLocalUser();

// This is required so that Queue() requests during startup sequence don't fail due to "not logged in".
state.Value = APIState.Connecting;
}

localUser.BindValueChanged(u =>
{
Expand Down
Loading