change downloads to concurrentdictionary

This commit is contained in:
Stanley Dimant
2022-09-06 13:39:33 +02:00
parent 5c480f551b
commit 94ff918881
4 changed files with 10 additions and 5 deletions

View File

@@ -146,6 +146,7 @@ public class CachedPlayer
{
Logger.Debug("Downloading missing files for player " + PlayerName + ", kind: " + objectKind);
await _apiController.DownloadFiles(downloadId, toDownloadReplacements, downloadToken);
_apiController.CancelDownload(downloadId);
if (downloadToken.IsCancellationRequested)
{
Logger.Verbose("Detected cancellation");