From 19b5b1a90c628db94c38ca89f7752ff26e66de3c Mon Sep 17 00:00:00 2001 From: devlikepro Date: Mon, 12 Aug 2024 13:18:07 +0700 Subject: [PATCH] [core] await for a client --- src/core/engines/noweb/session.noweb.core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/engines/noweb/session.noweb.core.ts b/src/core/engines/noweb/session.noweb.core.ts index 006795fb..6726c7f9 100644 --- a/src/core/engines/noweb/session.noweb.core.ts +++ b/src/core/engines/noweb/session.noweb.core.ts @@ -195,9 +195,9 @@ export class WhatsappSessionNoWebCore extends WhatsappSession { ); } - start() { + async start() { this.status = WAHASessionStatus.STARTING; - this.buildClient(); + await this.buildClient(); } getSocketConfig(agent, state): any {