This commit is contained in:
2020-09-09 18:50:46 +08:00
parent 3d29ae08c4
commit e58e388d3b
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class OnShutdown extends Callback
*/ */
public function onHandler(Server $server) public function onHandler(Server $server)
{ {
// Coroutine::create([$this,'system_mail'],'server shutdown~'); $this->system_mail('server shutdown~');
$event = Snowflake::app()->getEvent(); $event = Snowflake::app()->getEvent();
if (!$event->exists(Event::SERVER_SHUTDOWN)) { if (!$event->exists(Event::SERVER_SHUTDOWN)) {
return; return;
+6 -6
View File
@@ -28,12 +28,12 @@ class OnWorkerError extends Callback
if (!Config::has('email')) { if (!Config::has('email')) {
return; return;
} }
// Coroutine::create([$this,'system_mail'],print_r([ $this->system_mail(print_r([
// '$worker_pid' => $worker_pid, '$worker_pid' => $worker_pid,
// '$worker_id' => $worker_id, '$worker_id' => $worker_id,
// '$exit_code' => $exit_code, '$exit_code' => $exit_code,
// '$signal' => $signal, '$signal' => $signal,
// ], true)); ], true));
} }
} }