Skip to content

Commit

Permalink
fix(platforms): check for existing connection before establishing a n…
Browse files Browse the repository at this point in the history
…ew connection (#1814)
  • Loading branch information
tim-schultz authored Oct 24, 2023
1 parent 259d05f commit 9a41a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platforms/src/utils/passport-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export class PassportCache {
}

async init(): Promise<void> {
if (this.client.isReady) return await Promise.resolve();
await this.connect();
}

Expand Down

1 comment on commit 9a41a2d

@abas136411
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very good project

Please sign in to comment.