diff --git a/src/core/engines/gows/session.gows.core.ts b/src/core/engines/gows/session.gows.core.ts index 584ba5e0..03116a96 100644 --- a/src/core/engines/gows/session.gows.core.ts +++ b/src/core/engines/gows/session.gows.core.ts @@ -288,14 +288,12 @@ export class WhatsappSessionGoWSCore extends WhatsappSession { grpc.credentials.createInsecure(), ); - try { - await promisify(this.client.StartSession)(request); - } catch (err) { + 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; throw err; - } + }); } protected getProxyUrl(config: ProxyConfig): string {