remove check for file existence because of download task might still be around

This commit is contained in:
rootdarkarchon
2022-12-29 14:14:02 +01:00
parent 6a34f88a24
commit 3634cccd1e

View File

@@ -68,7 +68,7 @@ public class CachedFileProvider
_currentTransfers[hash] = DownloadTask(hash, auth).ContinueWith(r => _currentTransfers.Remove(hash, out _)); _currentTransfers[hash] = DownloadTask(hash, auth).ContinueWith(r => _currentTransfers.Remove(hash, out _));
} }
if (fi == null && _currentTransfers.TryGetValue(hash, out var downloadTask)) if (_currentTransfers.TryGetValue(hash, out var downloadTask))
{ {
await downloadTask.ConfigureAwait(false); await downloadTask.ConfigureAwait(false);
} }