Add Track Number support and make Cancel async

This commit is contained in:
Michael Bucari-Tovo 2022-06-19 12:56:33 -06:00
parent ae6c2afb30
commit 4658afdc20
9 changed files with 29 additions and 21 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Threading.Tasks;
using AAXClean;
using Dinah.Core.Net.Http;
@ -109,10 +110,11 @@ namespace AaxDecrypter
});
}
public override void Cancel()
public override async Task CancelAsync()
{
IsCanceled = true;
AaxFile?.Cancel();
if (AaxFile != null)
await AaxFile.CancelAsync();
AaxFile?.Dispose();
CloseInputFileStream();
}