From 179a50d5870c8fa8f6918bdd228a849d94e008f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 1 Mar 2021 15:35:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Action.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/HttpServer/Action.php b/HttpServer/Action.php index 6f0d8e2d..96b16c72 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -51,6 +51,9 @@ trait Action private function _shutdown($server) { $content = file_get_contents($this->getPidFile()); + if (!file_exists($content)) { + return; + } if (empty($content)) { $this->close($server); } else {