From 4b614ef26d433e30be2fb5859e4bdd4294a816b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 9 Mar 2021 19:43:14 +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 --- HttpServer/Events/OnShutdown.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/HttpServer/Events/OnShutdown.php b/HttpServer/Events/OnShutdown.php index d62ddad4..87e60bc2 100644 --- a/HttpServer/Events/OnShutdown.php +++ b/HttpServer/Events/OnShutdown.php @@ -20,15 +20,16 @@ class OnShutdown extends Callback /** * @param Server $server + * @throws ComponentException * @throws Exception */ public function onHandler(Server $server) { $this->debug('server shutdown~'); -// $this->system_mail('server shutdown~'); -// $event = Snowflake::app()->getEvent(); -// $event->trigger(Event::SERVER_SHUTDOWN); + $this->system_mail('server shutdown~'); + + fire(Event::SERVER_SHUTDOWN); } }