mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
also move to Stopped for aborts
This commit is contained in:
parent
85b451ffa1
commit
150f06b9bf
@ -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 New Issue
Block a user