mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:17:23 +01:00
remove downloads on cancellation, add note to where to put the cache folder
This commit is contained in:
parent
11cc190528
commit
54abfd74dc
3 changed files with 7 additions and 1 deletions
|
|
@ -118,6 +118,11 @@ namespace MareSynchronos.WebAPI
|
|||
await Task.Delay(250, ct);
|
||||
}
|
||||
|
||||
if (ct.IsCancellationRequested)
|
||||
{
|
||||
CurrentDownloads.RemoveAll(d => fileReplacementDto.Any(f => f.Hash == d.Hash));
|
||||
}
|
||||
|
||||
CurrentDownloads.RemoveAll(d => d.Transferred == d.Total || !d.CanBeTransferred);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue