This commit is contained in:
as2252258@163.com
2021-07-11 03:57:25 +08:00
parent 27dc21e24e
commit 12d547c1a2
13 changed files with 1038 additions and 816 deletions
+3 -5
View File
@@ -25,12 +25,10 @@ class OnWorkerExit extends Callback
public function onHandler($server, $worker_id)
{
putenv('state=exit');
$channel = Snowflake::app()->getChannel();
$channel->cleanAll();
Event::trigger(Event::SERVER_WORKER_EXIT);
Event::trigger(Event::SERVER_WORKER_EXIT, [$server, $worker_id]);
logger()->insert();
}
Snowflake::getApp('logger')->insert();
}
}