From 321f8cdae06828889614c43d658a7f7554fca464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 18 May 2021 10:40:31 +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/Events/OnWorkerStart.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HttpServer/Events/OnWorkerStart.php b/HttpServer/Events/OnWorkerStart.php index 7cc37cd6..a47f043f 100644 --- a/HttpServer/Events/OnWorkerStart.php +++ b/HttpServer/Events/OnWorkerStart.php @@ -52,7 +52,9 @@ class OnWorkerStart extends Callback putenv('worker=' . $worker_id); $serialize = file_get_contents(storage(Runtime::CONFIG_NAME)); - + if (empty($serialize)) { + return; + } Config::sets(unserialize($serialize)); }