fix filecachemanager issues

This commit is contained in:
rootdarkarchon
2023-10-14 20:58:10 +02:00
parent b51fe13d35
commit 79528b95e4
3 changed files with 42 additions and 15 deletions

View File

@@ -338,7 +338,7 @@ public partial class FileDownloadManager : DisposableMediatorSubscriberBase
{
Logger.LogError("Hash mismatch after extracting, got {hash}, expected {expectedHash}, deleting file", entry?.Hash, fileHash);
File.Delete(filePath);
_fileDbManager.RemoveHashedFile(entry);
_fileDbManager.RemoveHashedFile(entry.Hash, entry.PrefixedFilePath);
}
}
catch (Exception ex)