modify plugin name
This commit is contained in:
@@ -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
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user