[core] await for a client

This commit is contained in:
devlikepro committed 2024-08-27 16:42:47 +07:00
1 parent e7281e2118
commit 19b5b1a90c
1 file changed
+2 -2
+2 -2
View File
@@ -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 {