This commit is contained in:
2021-03-02 14:49:20 +08:00
parent ca80c81318
commit a3c6dbf1a6
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ abstract class Callback extends HttpService
protected function clear($server, $worker_id, $message)
{
try {
fire(Event::SYSTEM_RESOURCE_CLEAN);
Timer::clearAll();
fire(Event::SYSTEM_RESOURCE_CLEAN);
\logger()->insert();
Snowflake::clearProcessId($server->worker_pid);
+1
View File
@@ -272,6 +272,7 @@ abstract class Pool extends Component
*/
public function clean(string $name)
{
Timer::clear($this->creates);
if (!Context::inCoroutine()) {
return;
}