forked from mystiq/hydrogen-web
set error before changing state to stopped
This commit is contained in:
parent
c6cb345e16
commit
d759e1429f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue