From 22fa00a7b369b8d8614e29e0ddb6aa7345a6a1de Mon Sep 17 00:00:00 2001 From: Joel Einbinder Date: Wed, 4 Jul 2018 16:36:49 -0700 Subject: [PATCH] fix: wait for the chromeProcess to exit, not close (#2838) --- lib/Launcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Launcher.js b/lib/Launcher.js index 2723b2cf0e9..f3932623aa4 100644 --- a/lib/Launcher.js +++ b/lib/Launcher.js @@ -133,7 +133,7 @@ class Launcher { let chromeClosed = false; const waitForChromeToClose = new Promise((fulfill, reject) => { - chromeProcess.once('close', () => { + chromeProcess.once('exit', () => { chromeClosed = true; // Cleanup as processes exit. if (temporaryUserDataDir) {