Wait for idle instead
This commit is contained in:
parent
b6ab01d56a
commit
47f24e168b
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue