This commit is contained in:
2020-10-21 16:17:45 +08:00
parent 609c836965
commit 5925cdee25
2 changed files with 4 additions and 6 deletions
+3 -5
View File
@@ -22,13 +22,11 @@ class OnStart extends Callback
public function onHandler(Server $server)
{
Snowflake::setProcessId($server->master_pid);
if (Snowflake::isLinux()) {
name(rtrim(Config::get('id', false, 'system:'), ':'));
}
$event = Snowflake::app()->event;
$event->trigger(Event::SERVER_EVENT_START, null, $server);
if (Snowflake::isLinux()) {
name(rtrim(Config::get('id', 'system:'), ':'));
}
}
}