From c9fbafb909fd64b81cbe2f4a26227c18d20376f1 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 23 Aug 2021 15:12:40 +0530 Subject: [PATCH] Also check LoadStatus.Error Signed-off-by: RMidhunSuresh --- src/matrix/SessionContainer.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index ca8379bc..27776d37 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -130,7 +130,9 @@ export class SessionContainer { async startWithLogin(loginMethod) { const currentStatus = this._status.get(); - if (currentStatus !== LoadStatus.LoginFailed && currentStatus !== LoadStatus.NotLoading) { + if (currentStatus !== LoadStatus.LoginFailed && + currentStatus !== LoadStatus.NotLoading && + currentStatus !== LoadStatus.Error) { return; } this._resetStatus();