diff --git a/src/core/engines/gows/session.gows.core.ts b/src/core/engines/gows/session.gows.core.ts index d4e12b2f..a8f26ade 100644 --- a/src/core/engines/gows/session.gows.core.ts +++ b/src/core/engines/gows/session.gows.core.ts @@ -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;