1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Handle logged out user

This commit is contained in:
Salman Alshamrani 2024-11-18 06:46:57 -05:00
parent 74daf85e48
commit 0b52080a52

View File

@ -55,6 +55,9 @@ namespace osu.Game.Online
{
statisticsCache.Clear();
if (api.LocalUser.Value == null || api.LocalUser.Value.Id <= 1)
return;
foreach (var ruleset in rulesets.AvailableRulesets.Where(r => r.IsLegacyRuleset()))
RefetchStatistics(ruleset);
}