mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
always have an error when stopping sync
This commit is contained in:
parent
9f453c0984
commit
134f018849
@ -124,10 +124,10 @@ export class Sync {
|
|||||||
// don't run afterSyncCompleted
|
// don't run afterSyncCompleted
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
this._error = err;
|
||||||
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._status.set(SyncStatus.Stopped);
|
this._status.set(SyncStatus.Stopped);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user