diff --git a/src/api/whatsapp.ts b/src/api/whatsapp.ts index 51b08dac8..78428a05d 100644 --- a/src/api/whatsapp.ts +++ b/src/api/whatsapp.ts @@ -147,16 +147,18 @@ export class Whatsapp extends BusinessLayer { if (!this.page.isClosed()) { await this.page.close().catch(() => null); - } - - await browser.close().catch(() => null); - try { - const process = browser.process(); - if (process) { - treekill(process.pid, 'SIGKILL'); - } - } catch (error) {} + await browser.close().catch(() => null); + /* + Code removed as it is not necessary. + try { + const process = browser.process(); + if (process) { + treekill(process.pid, 'SIGKILL'); + } + } catch (error) {} + */ + } return true; }