don't run afterSyncCompleted when there was an error

This commit is contained in:
Bruno Windels 2020-08-31 14:13:36 +02:00
parent afb9ae4391
commit 09cb39b553

View file

@ -100,6 +100,7 @@ export class Sync {
this._status.set(SyncStatus.Stopped);
}
}
if (!this._error) {
try {
await this._session.afterSyncCompleted();
} catch (err) {
@ -108,6 +109,7 @@ export class Sync {
}
}
}
}
async _syncRequest(syncToken, timeout) {
let {syncFilterId} = this._session;