diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index cee8347d..14655b8e 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -124,12 +124,12 @@ export class Sync { // don't run afterSyncCompleted continue; } - this._status.set(SyncStatus.Stopped); if (err.name !== AbortError) { console.warn("stopping sync because of error"); console.error(err); this._error = err; } + this._status.set(SyncStatus.Stopped); } if (this._status.get() !== SyncStatus.Stopped) { // TODO: if we're not going to run this phase in parallel with the next