mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
always throw here so we never get to Ready status when stopped
This commit is contained in:
parent
134f018849
commit
b8370d53b6
@ -226,10 +226,8 @@ export class SessionContainer {
|
|||||||
try {
|
try {
|
||||||
await this._waitForFirstSyncHandle.promise;
|
await this._waitForFirstSyncHandle.promise;
|
||||||
if (this._sync.status.get() === SyncStatus.Stopped) {
|
if (this._sync.status.get() === SyncStatus.Stopped) {
|
||||||
if (this._sync.error) {
|
|
||||||
throw this._sync.error;
|
throw this._sync.error;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// if dispose is called from stop, bail out
|
// if dispose is called from stop, bail out
|
||||||
if (err instanceof AbortError) {
|
if (err instanceof AbortError) {
|
||||||
|
Loading…
Reference in New Issue
Block a user