Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: asynchronously wait for the browser to close before exiting the process #321

Merged
merged 1 commit into from Feb 29, 2024

Conversation

jsarem
Copy link
Contributor

@jsarem jsarem commented Feb 29, 2024

Decktape doesn't wait for the browser to close before exiting the node process. This causes the browser to crash and not to remove temporary files, leaving them in /tmp directory.

See: https://pptr.dev/api/puppeteer.browser.close

Related issue: #295

@astefanutti astefanutti merged commit 372c805 into astefanutti:master Feb 29, 2024
1 of 2 checks passed
@astefanutti
Copy link
Owner

Thanks a lot for your contribution!

@jsarem jsarem deleted the wait-for-browser-to-close branch April 29, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants