Skip to content

Commit 2099d91

Browse files
committed
don't kill the child process if it shouldn't be killed
1 parent 66c9186 commit 2099d91

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/cli-v3/src/workers/dev/backgroundWorker.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,10 @@ class TaskRunProcess {
865865

866866
// FIXME: Something broke READY_TO_DISPOSE. We never receive it, so we always have to kill the process after the timeout below.
867867

868+
if (!kill) {
869+
return;
870+
}
871+
868872
// Set a timeout to kill the child process if it hasn't been killed within 5 seconds
869873
setTimeout(() => {
870874
if (this._child && !this._child.killed) {

0 commit comments

Comments
 (0)