mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 11:03:21 +08:00
Merge pull request #29966 from bdach/unsafe-deep-clone
Fix score being cloned in async method causing random errors (again)
This commit is contained in:
commit
f08134f443
@ -234,9 +234,12 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
if (LoadedBeatmapSuccessfully)
|
||||
{
|
||||
// compare: https://github.com/ppy/osu/blob/ccf1acce56798497edfaf92d3ece933469edcf0a/osu.Game/Screens/Play/Player.cs#L848-L851
|
||||
var scoreCopy = Score.DeepClone();
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
await submitScore(Score.DeepClone()).ConfigureAwait(false);
|
||||
await submitScore(scoreCopy).ConfigureAwait(false);
|
||||
spectatorClient.EndPlaying(GameplayState);
|
||||
}).FireAndForget();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user