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