diff --git a/HttpServer/Abstracts/Callback.php b/HttpServer/Abstracts/Callback.php index bb3d4cbe..bb9dca39 100644 --- a/HttpServer/Abstracts/Callback.php +++ b/HttpServer/Abstracts/Callback.php @@ -33,6 +33,8 @@ abstract class Callback extends HttpService protected function clear($server, $worker_id, $message) { try { + fire(Event::SYSTEM_RESOURCE_CLEAN); + Snowflake::clearProcessId($server->worker_pid); Timer::clearAll(); diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 2515453d..36404c89 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -286,6 +286,8 @@ abstract class Pool extends Component unset($client); $this->desc($name); } + $this->_items[$name]->close(); + $this->_items[$name] = null; }