From b8370d53b6522d26878b1402615e172a5d8b5d3a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 5 Nov 2020 21:22:29 +0100 Subject: [PATCH] always throw here so we never get to Ready status when stopped --- src/matrix/SessionContainer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index 4f28c946..3945f2ef 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -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