modify plugin name

This commit is contained in:
2022-06-22 17:41:32 +08:00
parent 4a6aa23e17
commit b02213393f
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -182,6 +182,7 @@ class AsyncServer implements ServerInterface
*/ */
public function onSignal(array $signal): void public function onSignal(array $signal): void
{ {
pcntl_signal(SIGTERM, [$this, 'onSigint']);
pcntl_signal(SIGINT, [$this, 'onSigint']); pcntl_signal(SIGINT, [$this, 'onSigint']);
foreach ($signal as $sig => $value) { foreach ($signal as $sig => $value) {
if (is_array($value) && is_string($value[0])) { if (is_array($value) && is_string($value[0])) {
+1 -2
View File
@@ -184,8 +184,7 @@ class Server extends HttpService
$reload = Config::get('reload.hot', false); $reload = Config::get('reload.hot', false);
if ($reload !== false) { if ($reload !== false) {
$this->provider->on(OnWorkerStart::class, [$this, 'LoadRoutingList']); $this->provider->on(OnWorkerStart::class, [$this, 'LoadRoutingList']);
$this->processManager->add(Scaner::class);
$this->process[] = Scaner::class;
} else { } else {
$this->LoadRoutingList(); $this->LoadRoutingList();
} }