fix cleanup of outdated files in filescanner

This commit is contained in:
rootdarkarchon
2022-11-15 20:55:38 +01:00
parent 605c1d3774
commit 14e5b5bb21
3 changed files with 9 additions and 3 deletions

View File

@@ -68,7 +68,10 @@ public partial class ApiController
{
await wc.DownloadFileTaskAsync(downloadUri, fileName).ConfigureAwait(false);
}
catch { }
catch (Exception ex) {
Logger.Warn(ex.Message);
Logger.Warn(ex.StackTrace);
}
CurrentDownloads[downloadId].Single(f => string.Equals(f.Hash, hash, StringComparison.Ordinal)).Transferred = CurrentDownloads[downloadId].Single(f => string.Equals(f.Hash, hash, StringComparison.Ordinal)).Total;