Wait for idle instead

This commit is contained in:
Andras Schmelczer 2025-12-14 11:06:49 +00:00
parent b6ab01d56a
commit 47f24e168b

View file

@ -264,7 +264,7 @@ export class Syncer {
public async waitUntilFinished(): Promise<void> { public async waitUntilFinished(): Promise<void> {
await this.runningScheduleSyncForOfflineChanges; await this.runningScheduleSyncForOfflineChanges;
await this.syncQueue.onEmpty(); await this.syncQueue.onIdle(); // Wait for queue to be empty and running tasks to finish
} }
public async syncRemotelyUpdatedFile( public async syncRemotelyUpdatedFile(