fix: max listeners warning
This commit is contained in:
parent
b0a04f98a1
commit
5da5d4f3fa
1 changed files with 4 additions and 0 deletions
|
|
@ -14,3 +14,7 @@ if (!baseWebhookURL) {
|
|||
app.listen(port, () => {
|
||||
console.log(`Server running on port ${port}`)
|
||||
})
|
||||
|
||||
// puppeteer uses subscriptions to SIGINT, SIGTERM, and SIGHUP to know when to close browser instances
|
||||
// this disables the warnings when you starts more than 10 browser instances
|
||||
process.setMaxListeners(0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue