Match the documented behaviour

This commit is contained in:
Manav Rathi
2024-07-31 12:46:02 +05:30
parent 3a5843f532
commit 192e491acb

View File

@@ -292,14 +292,14 @@ const indexNextBatch = async (
for (const item of items) {
try {
await index(item, electron);
delegate?.workerDidProcessFile();
// Let us drain the microtask queue. This also gives a chance for other
// interactive tasks like `clipMatches` to run.
await wait(0);
} catch (e) {
log.warn(`Skipping unindexable file ${item.enteFile.id}`, e);
allSuccess = false;
}
delegate?.workerDidProcessFile();
// Let us drain the microtask queue. This also gives a chance for other
// interactive tasks like `clipMatches` to run.
await wait(0);
}
// Return true if nothing failed.