also move to Stopped for aborts

This commit is contained in:
Bruno Windels 2020-09-22 16:39:04 +02:00
parent 85b451ffa1
commit 150f06b9bf

View File

@ -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) {