always throw here so we never get to Ready status when stopped

This commit is contained in:
Bruno Windels 2020-11-05 21:22:29 +01:00
parent 134f018849
commit b8370d53b6

View file

@ -226,9 +226,7 @@ export class SessionContainer {
try {
await this._waitForFirstSyncHandle.promise;
if (this._sync.status.get() === SyncStatus.Stopped) {
if (this._sync.error) {
throw this._sync.error;
}
throw this._sync.error;
}
} catch (err) {
// if dispose is called from stop, bail out