Fix potential multiplayer crash with async disposal

This commit is contained in:
Dan Balasescu 2022-03-10 18:50:53 +09:00
parent f82687a2c6
commit 45d537ef72
1 changed files with 4 additions and 1 deletions

View File

@ -175,7 +175,10 @@ private void onMatchStarted() => Scheduler.Add(() =>
base.StartGameplay();
});
private void onResultsReady() => resultsReady.SetResult(true);
private void onResultsReady() => Scheduler.Add(() =>
{
resultsReady.SetResult(true);
});
protected override async Task PrepareScoreForResultsAsync(Score score)
{