This commit is contained in:
2022-09-23 18:55:45 +08:00
parent b3a58b0528
commit 13b9344743
3 changed files with 9 additions and 5 deletions
+4 -2
View File
@@ -89,15 +89,17 @@ class AsyncServer implements ServerInterface
/**
* @return void
* @return bool
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface|ReflectionException
*/
public function shutdown(): void
public function shutdown(): bool
{
$this->server->shutdown();
$this->dispatch->dispatch(new OnShutdown());
return true;
}