From 9a41a2d8261ec55f769b1f7f6a577a49c3720796 Mon Sep 17 00:00:00 2001 From: Tim <6887938+digitalmnt@users.noreply.github.com> Date: Tue, 24 Oct 2023 12:47:09 -0600 Subject: [PATCH] fix(platforms): check for existing connection before establishing a new connection (#1814) --- platforms/src/utils/passport-cache.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/platforms/src/utils/passport-cache.ts b/platforms/src/utils/passport-cache.ts index 3f554b8335..fb21c8f7ee 100644 --- a/platforms/src/utils/passport-cache.ts +++ b/platforms/src/utils/passport-cache.ts @@ -15,6 +15,7 @@ export class PassportCache { } async init(): Promise { + if (this.client.isReady) return await Promise.resolve(); await this.connect(); }