From 905c6ce159d2f839a342476b3a83d6a31a302f1e Mon Sep 17 00:00:00 2001 From: Ramin Tadayon Date: Fri, 1 Dec 2023 16:06:04 -0700 Subject: [PATCH] Fixes case where pending session promise is not awaited --- src/plus/gk/account/subscriptionService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plus/gk/account/subscriptionService.ts b/src/plus/gk/account/subscriptionService.ts index 930cb29..aa90697 100644 --- a/src/plus/gk/account/subscriptionService.ts +++ b/src/plus/gk/account/subscriptionService.ts @@ -626,7 +626,7 @@ export class SubscriptionService implements Disposable { @gate() @debug() private async ensureSession(createIfNeeded: boolean, force?: boolean): Promise { - if (this._sessionPromise != null && this._session === undefined) { + if (this._sessionPromise != null) { void (await this._sessionPromise); }