diff --git a/lib/Browser.js b/lib/Browser.js index 2555b6a7..8dd074a3 100644 --- a/lib/Browser.js +++ b/lib/Browser.js @@ -155,9 +155,8 @@ function waitForRemoteDebuggingPort(chromeProcess) { const match = line.match(/^DevTools listening on .*:([\d]+)$/); if (!match) return; - fulfill(Number.parseInt(match[1], 10)); rl.removeListener('line', onLine); - rl.close(); + fulfill(Number.parseInt(match[1], 10)); } }