diff --git a/HttpServer/Abstracts/Callback.php b/HttpServer/Abstracts/Callback.php index 31738d1a..b232b869 100644 --- a/HttpServer/Abstracts/Callback.php +++ b/HttpServer/Abstracts/Callback.php @@ -33,9 +33,9 @@ abstract class Callback extends HttpService protected function clear($server, $worker_id, $message) { try { - fire(Event::SYSTEM_RESOURCE_CLEAN); + Timer::clearAll(); - Timer::clearAll(); + fire(Event::SYSTEM_RESOURCE_CLEAN); \logger()->insert(); diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 56a8f084..c93c1dbe 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -272,6 +272,7 @@ abstract class Pool extends Component */ public function clean(string $name) { + Timer::clear($this->creates); if (!Context::inCoroutine()) { return; }