[core] GOWS - start session in the background

This commit is contained in:
devlikepro committed 2026-01-12 16:50:34 +07:00
1 parent 84ba011a4c
commit 7a2e1cd731
1 file changed
+2 -4
+2 -4
View File
@@ -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 {