This commit is contained in:
2020-09-18 21:17:44 +08:00
parent 6e6c9af887
commit 8b450ef1f0
11 changed files with 6 additions and 41 deletions
-3
View File
@@ -35,9 +35,6 @@ class OnShutdown extends Callback
{
$this->system_mail('server shutdown~');
$event = Snowflake::app()->getEvent();
if (!$event->exists(Event::SERVER_SHUTDOWN)) {
return;
}
$event->trigger(Event::SERVER_SHUTDOWN);
}