mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-10 20:17:32 +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
|
// don't run afterSyncCompleted
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
this._status.set(SyncStatus.Stopped);
|
|
||||||
if (err.name !== AbortError) {
|
if (err.name !== AbortError) {
|
||||||
console.warn("stopping sync because of error");
|
console.warn("stopping sync because of error");
|
||||||
console.error(err);
|
console.error(err);
|
||||||
this._error = err;
|
this._error = err;
|
||||||
}
|
}
|
||||||
|
this._status.set(SyncStatus.Stopped);
|
||||||
}
|
}
|
||||||
if (this._status.get() !== SyncStatus.Stopped) {
|
if (this._status.get() !== SyncStatus.Stopped) {
|
||||||
// TODO: if we're not going to run this phase in parallel with the next
|
// TODO: if we're not going to run this phase in parallel with the next
|
||||||
|
Loading…
x
Reference in New Issue
Block a user