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); + } } }