change downloads to concurrentdictionary

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

View File

@@ -147,6 +147,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");