[core] GOWS - await grp response when starting a new session

fix #2012
This commit is contained in:
devlikepro committed 2026-04-15 13:05:23 +07:00
1 parent d2b7d94607
commit 06c874fea5
1 file changed
+1 -1
+1 -1
View File
@@ -314,7 +314,7 @@ export class WhatsappSessionGoWSCore extends WhatsappSession {
grpc.credentials.createInsecure(),
);
promisify(this.client.StartSession)(request).catch((err) => {
await promisify(this.client.StartSession)(request).catch((err) => {
this.logger.error('Failed to start the client');
this.logger.error(err, err.stack);
this.status = WAHASessionStatus.FAILED;