Skip to content

Commit

Permalink
Merge pull request #28876 from peppy/fix-daily-challenge-disposal-aa
Browse files Browse the repository at this point in the history
Fix potential crash when exiting daily challenge screen
  • Loading branch information
smoogipoo authored Jul 16, 2024
2 parents c854dfd + 1083e71 commit f6b4d54
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void RefetchScores()
{
var request = new IndexPlaylistScoresRequest(room.RoomID.Value!.Value, playlistItem.ID);

request.Success += req =>
request.Success += req => Schedule(() =>
{
var best = req.Scores.Select(s => s.CreateScoreInfo(scoreManager, rulesets, playlistItem, beatmap.Value.BeatmapInfo)).ToArray();
var userBest = req.UserScore?.CreateScoreInfo(scoreManager, rulesets, playlistItem, beatmap.Value.BeatmapInfo);
Expand Down Expand Up @@ -165,7 +165,7 @@ public void RefetchScores()
}
userBestHeader.FadeTo(userBest == null ? 0 : 1);
};
});

loadingLayer.Show();
scoreFlow.FadeTo(0.5f, 400, Easing.OutQuint);
Expand Down

0 comments on commit f6b4d54

Please sign in to comment.