diff --git a/State.php b/State.php index 98508c3..8dfa51b 100644 --- a/State.php +++ b/State.php @@ -48,7 +48,9 @@ class State extends Component return; } while (checkPortIsAlready($port)) { - Process::kill($pid, SIGTERM); + if (Process::kill($pid, 0)) { + Process::kill($pid, SIGTERM); + } usleep(300); } }