mirror of
https://github.com/ppy/osu
synced 2025-02-16 18:17:01 +00:00
Fix incorrect cancellation logic
This commit is contained in:
parent
5d78561aa3
commit
747f912af5
@ -99,11 +99,13 @@ namespace osu.Game.Database
|
||||
|
||||
PostNotification?.Invoke(notification);
|
||||
|
||||
using var linkedSource = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken, notification.CancellationToken);
|
||||
|
||||
try
|
||||
{
|
||||
using (var stream = exportStorage.CreateFileSafely(filename))
|
||||
{
|
||||
await ExportToStreamAsync(model, stream, notification, cancellationToken == CancellationToken.None ? notification.CancellationToken : cancellationToken).ConfigureAwait(false);
|
||||
await ExportToStreamAsync(model, stream, notification, linkedSource.Token).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
Loading…
Reference in New Issue
Block a user