From 634b4f7aa32d81d039789d87ec759f2bdaabbe9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 14:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- State.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/State.php b/State.php index 8d879be..9494004 100644 --- a/State.php +++ b/State.php @@ -17,7 +17,10 @@ class State extends Component public array $servers = []; - public function init() + /** + * @return void + */ + public function init(): void { $this->servers = Config::get('server.ports'); } @@ -49,7 +52,7 @@ class State extends Component return; } while (checkPortIsAlready($port)) { - Process::kill($pid, 0) && Process::kill($pid, SIGTERM); + Process::kill($pid, 0) && Process::kill($pid, SIGTERM); usleep(300); } }