[core] await for a client
This commit is contained in:
1 parent
e7281e2118
commit
19b5b1a90c
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user