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,9 +226,7 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user