From 7af3a5a7ad2a94a2e665bfe784d0b46953428f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 14 Oct 2020 10:43:43 +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/OnManagerStop.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/HttpServer/Events/OnManagerStop.php b/HttpServer/Events/OnManagerStop.php index faa7af02..2d0f1847 100644 --- a/HttpServer/Events/OnManagerStop.php +++ b/HttpServer/Events/OnManagerStop.php @@ -27,13 +27,13 @@ class OnManagerStop extends Callback $events = Snowflake::app()->event; $events->trigger(Event::SERVER_MANAGER_STOP, [$server]); -// $runPath = storage(null, 'workerIds'); -// foreach (glob($runPath . '/*') as $item) { -// if (!file_exists($item)) { -// continue; -// } -// @unlink($item); -// } + $runPath = storage(null, 'worker'); + foreach (glob($runPath . '/*') as $item) { + if (!file_exists($item)) { + continue; + } + @unlink($item); + } } }