mirror of
https://github.com/ppy/osu
synced 2025-01-25 23:32:58 +00:00
Merge pull request #18436 from peppy/fix-unsafe-mutation
Fix potential crash from unsafe drawable mutation in scoreboard update code
This commit is contained in:
commit
046867f5f4
@ -38,13 +38,13 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
|
||||
|
||||
var req = new GetRoomLeaderboardRequest(roomId.Value ?? 0);
|
||||
|
||||
req.Success += r =>
|
||||
req.Success += r => Schedule(() =>
|
||||
{
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
return;
|
||||
|
||||
SetScores(r.Leaderboard, r.UserScore);
|
||||
};
|
||||
});
|
||||
|
||||
return req;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user