refactor: use browsers for launchers (#9937)

This commit is contained in:
Alex Rudenko
2023-04-04 15:29:21 +02:00
committed by GitHub
parent 817288cd90
commit c8f6adf9f3
14 changed files with 437 additions and 926 deletions

View File

@@ -270,10 +270,9 @@ class Process {
async close(): Promise<void> {
await this.#runHooks();
if (this.#exited) {
return this.#browserProcessExiting;
if (!this.#exited) {
this.kill();
}
this.kill();
return this.#browserProcessExiting;
}