forked from mystiq/hydrogen-web
also move to Stopped for aborts
This commit is contained in:
parent
85b451ffa1
commit
150f06b9bf
1 changed files with 1 additions and 1 deletions
|
@ -120,11 +120,11 @@ export class Sync {
|
|||
this._status.set(SyncStatus.Syncing);
|
||||
}
|
||||
} catch (err) {
|
||||
this._status.set(SyncStatus.Stopped);
|
||||
if (!(err instanceof 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) {
|
||||
|
|
Loading…
Reference in a new issue