mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
fix file cache manager issues
This commit is contained in:
parent
9b8145fddd
commit
cc0af38b31
3 changed files with 63 additions and 29 deletions
|
|
@ -133,6 +133,17 @@ namespace MareSynchronos.WebAPI
|
|||
downloadedHashes.Add(hash);
|
||||
}
|
||||
|
||||
bool allFilesInDb = false;
|
||||
while (!allFilesInDb)
|
||||
{
|
||||
await using (var db = new FileCacheContext())
|
||||
{
|
||||
allFilesInDb = downloadedHashes.All(h => db.FileCaches.Any(f => f.Hash == h));
|
||||
}
|
||||
|
||||
await Task.Delay(250);
|
||||
}
|
||||
|
||||
CurrentDownloads.Clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue