From 4a6aa23e1711bdbbb0a33e33c2e321c2047822ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 22 Jun 2022 17:16:17 +0800 Subject: [PATCH] modify plugin name --- Abstracts/AsyncServer.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Abstracts/AsyncServer.php b/Abstracts/AsyncServer.php index 1859705..8c01081 100644 --- a/Abstracts/AsyncServer.php +++ b/Abstracts/AsyncServer.php @@ -197,18 +197,13 @@ class AsyncServer implements ServerInterface /** * @return void - * @throws ContainerExceptionInterface - * @throws NotFoundExceptionInterface - * @throws ReflectionException */ public function onSigint(): void { try { - $this->dispatch->dispatch(new OnBeforeShutdown()); + $this->shutdown(); } catch (\Throwable $exception) { $this->logger->error($exception->getMessage()); - } finally { - $this->shutdown(); } }