mirror of
https://github.com/ppy/osu
synced 2025-01-21 05:20:50 +00:00
ConfigureAwait for awaited task
This commit is contained in:
parent
e84e011d5d
commit
29d6483e17
@ -78,7 +78,7 @@ namespace osu.Game.Database
|
||||
|
||||
using (var stream = exportStorage.CreateFileSafely(filename))
|
||||
{
|
||||
success = await ExportToStreamAsync(model, stream, notification, cancellationToken ?? notification.CancellationToken);
|
||||
success = await ExportToStreamAsync(model, stream, notification, cancellationToken ?? notification.CancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
if (!success)
|
||||
@ -119,7 +119,7 @@ namespace osu.Game.Database
|
||||
notify.CompletionText = "Export Complete, Click to open the folder";
|
||||
notify.State = ProgressNotificationState.Completed;
|
||||
return true;
|
||||
}, cancellationToken);
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user