mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: wait for the chromeProcess to exit, not close (#2838)
This commit is contained in:
parent
fb7c4e0984
commit
22fa00a7b3
@ -133,7 +133,7 @@ class Launcher {
|
|||||||
|
|
||||||
let chromeClosed = false;
|
let chromeClosed = false;
|
||||||
const waitForChromeToClose = new Promise((fulfill, reject) => {
|
const waitForChromeToClose = new Promise((fulfill, reject) => {
|
||||||
chromeProcess.once('close', () => {
|
chromeProcess.once('exit', () => {
|
||||||
chromeClosed = true;
|
chromeClosed = true;
|
||||||
// Cleanup as processes exit.
|
// Cleanup as processes exit.
|
||||||
if (temporaryUserDataDir) {
|
if (temporaryUserDataDir) {
|
||||||
|
Loading…
Reference in New Issue
Block a user