Merge pull request #15810 from peppy/fix-incorrect-await

Fix incorrect `ConfigureAwait` specification causing test stalls
This commit is contained in:
Dan Balasescu 2021-11-26 13:19:07 +09:00 committed by GitHub
commit 3bc8f21935
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,7 +253,7 @@ namespace osu.Game.Stores
var scheduledImport = Task.Factory.StartNew(async () => await Import(model, archive, lowPriority, cancellationToken).ConfigureAwait(false), var scheduledImport = Task.Factory.StartNew(async () => await Import(model, archive, lowPriority, cancellationToken).ConfigureAwait(false),
cancellationToken, TaskCreationOptions.HideScheduler, lowPriority ? import_scheduler_low_priority : import_scheduler).Unwrap(); cancellationToken, TaskCreationOptions.HideScheduler, lowPriority ? import_scheduler_low_priority : import_scheduler).Unwrap();
return await scheduledImport.ConfigureAwait(true); return await scheduledImport.ConfigureAwait(false);
} }
/// <summary> /// <summary>