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:
Dean Herbert 2022-05-27 21:00:15 +09:00 committed by GitHub
commit 046867f5f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}