mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:27:21 +01:00
fix filescanner locking up dictionary when deletion tasks are scheduled
This commit is contained in:
parent
70d19abc19
commit
fe29bc7e9f
2 changed files with 3 additions and 2 deletions
|
|
@ -229,7 +229,8 @@ public class PeriodicFileScanner : IDisposable
|
|||
try
|
||||
{
|
||||
var validatedCacheResult = _fileDbManager.ValidateFileCacheEntity(cache);
|
||||
scannedFiles[validatedCacheResult.Item2.ResolvedFilepath] = true;
|
||||
if (validatedCacheResult.Item1 != FileState.RequireDeletion)
|
||||
scannedFiles[validatedCacheResult.Item2.ResolvedFilepath] = true;
|
||||
if (validatedCacheResult.Item1 == FileState.RequireUpdate)
|
||||
{
|
||||
entitiesToUpdate.Add(validatedCacheResult.Item2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue