mirror of
https://github.com/ppy/osu.git
synced 2024-12-05 10:33:22 +08:00
Handle logged out user
This commit is contained in:
parent
74daf85e48
commit
0b52080a52
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user