From 5b46f20b9debc839ab8b2ff0f92eb775a52d95fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 11 Jul 2022 16:31:57 +0800 Subject: [PATCH] modify plugin name --- State.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/State.php b/State.php index 61c9fd5..8d879be 100644 --- a/State.php +++ b/State.php @@ -49,9 +49,7 @@ class State extends Component return; } while (checkPortIsAlready($port)) { - if (Process::kill($pid, 0)) { - Process::kill($pid, SIGTERM); - } + Process::kill($pid, 0) && Process::kill($pid, SIGTERM); usleep(300); } }