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); } }