mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:13:31 +08:00
Fix potential multiple submission
This commit is contained in:
parent
2958cab239
commit
1369b75a86
@ -502,6 +502,7 @@ namespace osu.Game.Screens.Play
|
||||
}
|
||||
|
||||
private ScheduledDelegate completionProgressDelegate;
|
||||
private Task<ScoreInfo> scoreSubmissionTask;
|
||||
|
||||
private void updateCompletionState(ValueChangedEvent<bool> completionState)
|
||||
{
|
||||
@ -528,7 +529,8 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
if (!showResults) return;
|
||||
|
||||
SubmitScore(CreateScore()).ContinueWith(t => Schedule(() =>
|
||||
scoreSubmissionTask ??= SubmitScore(CreateScore());
|
||||
scoreSubmissionTask.ContinueWith(t => Schedule(() =>
|
||||
{
|
||||
using (BeginDelayedSequence(RESULTS_DISPLAY_DELAY))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user