Also check LoadStatus.Error

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-23 15:12:40 +05:30
parent 84fd286140
commit c9fbafb909

View File

@ -130,7 +130,9 @@ export class SessionContainer {
async startWithLogin(loginMethod) { async startWithLogin(loginMethod) {
const currentStatus = this._status.get(); const currentStatus = this._status.get();
if (currentStatus !== LoadStatus.LoginFailed && currentStatus !== LoadStatus.NotLoading) { if (currentStatus !== LoadStatus.LoginFailed &&
currentStatus !== LoadStatus.NotLoading &&
currentStatus !== LoadStatus.Error) {
return; return;
} }
this._resetStatus(); this._resetStatus();