Do not close readline after reading remote debugging port
Closing readline interface results in closing underlying stream. We don't want this.
This commit is contained in:
parent
b3d38a1b8d
commit
64ebcdba9f
@ -155,9 +155,8 @@ function waitForRemoteDebuggingPort(chromeProcess) {
|
|||||||
const match = line.match(/^DevTools listening on .*:([\d]+)$/);
|
const match = line.match(/^DevTools listening on .*:([\d]+)$/);
|
||||||
if (!match)
|
if (!match)
|
||||||
return;
|
return;
|
||||||
fulfill(Number.parseInt(match[1], 10));
|
|
||||||
rl.removeListener('line', onLine);
|
rl.removeListener('line', onLine);
|
||||||
rl.close();
|
fulfill(Number.parseInt(match[1], 10));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user