Skip to content

Commit

Permalink
fix: wait for the chromeProcess to exit, not close (#2838)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder authored and aslushnikov committed Jul 4, 2018
1 parent fb7c4e0 commit 22fa00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 22fa00a

Please sign in to comment.