mirror of
https://github.com/ppy/osu
synced 2025-02-05 04:42:18 +00:00
Fix solo statistics watcher firing requests for invalid user with id 1
Can happen during login flow (see `APIAccess.attemptConnect()`).
This commit is contained in:
parent
d6e079a2b4
commit
fd9110a61e
@ -3,7 +3,6 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Extensions.ObjectExtensions;
|
||||
@ -72,11 +71,9 @@ namespace osu.Game.Online.Solo
|
||||
lastProcessedScoreId = null;
|
||||
latestStatistics.Clear();
|
||||
|
||||
if (!api.IsLoggedIn)
|
||||
if (localUser == null || localUser.OnlineID <= 1)
|
||||
return;
|
||||
|
||||
Debug.Assert(localUser != null);
|
||||
|
||||
var userRequest = new GetUsersRequest(new[] { localUser.OnlineID });
|
||||
userRequest.Success += response => Schedule(() =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user