From 7a2e1cd7310b72ee9b0a92125a269ffb7e99892e Mon Sep 17 00:00:00 2001 From: devlikepro Date: Sat, 10 Jan 2026 15:21:06 +0700 Subject: [PATCH] [core] GOWS - start session in the background --- src/core/engines/gows/session.gows.core.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 {