mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 03:02:56 +08:00
Fix potential crash from unsafe drawable mutation in scoreboard update code
This commit is contained in:
parent
5657cb757d
commit
d94315ee3f
@ -38,13 +38,13 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
|
|||||||
|
|
||||||
var req = new GetRoomLeaderboardRequest(roomId.Value ?? 0);
|
var req = new GetRoomLeaderboardRequest(roomId.Value ?? 0);
|
||||||
|
|
||||||
req.Success += r =>
|
req.Success += r => Schedule(() =>
|
||||||
{
|
{
|
||||||
if (cancellationToken.IsCancellationRequested)
|
if (cancellationToken.IsCancellationRequested)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
SetScores(r.Leaderboard, r.UserScore);
|
SetScores(r.Leaderboard, r.UserScore);
|
||||||
};
|
});
|
||||||
|
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user