mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
set error before changing state to stopped
This commit is contained in:
parent
c6cb345e16
commit
d759e1429f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user