diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index a3cdf0a0..a3045dba 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -73,7 +73,7 @@ export class SessionContainer { return; } this._status.set(LoadStatus.Loading); - this._platform.logger.run("load session", async log => { + await this._platform.logger.run("load session", async log => { log.set("id", sessionId); try { const sessionInfo = await this._platform.sessionInfoStorage.get(sessionId); @@ -94,7 +94,7 @@ export class SessionContainer { if (this._status.get() !== LoadStatus.NotLoading) { return; } - this._platform.logger.run("login", async log => { + await this._platform.logger.run("login", async log => { this._status.set(LoadStatus.Login); const clock = this._platform.clock; let sessionInfo;