modify plugin name

This commit is contained in:
2022-06-22 17:16:17 +08:00
parent 62246c7f74
commit 4a6aa23e17
+1 -6
View File
@@ -197,18 +197,13 @@ class AsyncServer implements ServerInterface
/** /**
* @return void * @return void
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
* @throws ReflectionException
*/ */
public function onSigint(): void public function onSigint(): void
{ {
try { try {
$this->dispatch->dispatch(new OnBeforeShutdown()); $this->shutdown();
} catch (\Throwable $exception) { } catch (\Throwable $exception) {
$this->logger->error($exception->getMessage()); $this->logger->error($exception->getMessage());
} finally {
$this->shutdown();
} }
} }