变更
This commit is contained in:
@@ -92,7 +92,6 @@ class AsyncServer implements ServerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @throws ContainerExceptionInterface
|
* @throws ContainerExceptionInterface
|
||||||
* @throws NotFoundExceptionInterface
|
* @throws NotFoundExceptionInterface
|
||||||
* @throws ReflectionException
|
|
||||||
*/
|
*/
|
||||||
public function shutdown(): void
|
public function shutdown(): void
|
||||||
{
|
{
|
||||||
@@ -203,7 +202,7 @@ class AsyncServer implements ServerInterface
|
|||||||
public function onSigint($no, array $signInfo): void
|
public function onSigint($no, array $signInfo): void
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->logger->alert('Pid ' . getmypid() . ' get signo ' . $no, $signInfo);
|
$this->logger->alert('Pid ' . getmypid() . ' get signo ' . $no);
|
||||||
$this->shutdown();
|
$this->shutdown();
|
||||||
} catch (\Throwable $exception) {
|
} catch (\Throwable $exception) {
|
||||||
$this->logger->error($exception->getMessage());
|
$this->logger->error($exception->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user