Browse Source

Fixes case where pending session promise is not awaited

main
Ramin Tadayon 11 months ago
parent
commit
905c6ce159
No known key found for this signature in database GPG Key ID: 79D60DDE3DFB95F5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plus/gk/account/subscriptionService.ts

+ 1
- 1
src/plus/gk/account/subscriptionService.ts View File

@ -626,7 +626,7 @@ export class SubscriptionService implements Disposable {
@gate() @gate()
@debug() @debug()
private async ensureSession(createIfNeeded: boolean, force?: boolean): Promise<AuthenticationSession | undefined> { private async ensureSession(createIfNeeded: boolean, force?: boolean): Promise<AuthenticationSession | undefined> {
if (this._sessionPromise != null && this._session === undefined) {
if (this._sessionPromise != null) {
void (await this._sessionPromise); void (await this._sessionPromise);
} }

Loading…
Cancel
Save