From 559685fdf776c80b2cd732167f44b31d77573c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 16 Apr 2021 15:04:25 +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 --- Annotation/LocalService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/LocalService.php b/Annotation/LocalService.php index d7e8aa65..58667d92 100644 --- a/Annotation/LocalService.php +++ b/Annotation/LocalService.php @@ -42,7 +42,7 @@ use Snowflake\Event; Snowflake::set($this->service, $class); if ($this->async_reload === true) { $event = Snowflake::app()->getEvent(); - $event->on(Event::SERVER_BEFORE_RELOAD, function () { + $event->on(Event::SERVER_WORKER_EXIT, function () { Snowflake::app()->remove($this->service); }); }