This commit is contained in:
2023-04-19 15:21:09 +08:00
parent 8ca59cc91d
commit 48444cd0fa
+2 -1
View File
@@ -60,8 +60,9 @@ class OnServer extends Server
* @throws NotFoundExceptionInterface * @throws NotFoundExceptionInterface
* @throws ReflectionException * @throws ReflectionException
*/ */
public function onShutdown(SServer $server) public function onShutdown(SServer $server): void
{ {
@unlink(storage('.swoole.pid'));
$dispatch = \Kiri::getDi()->get(EventDispatch::class); $dispatch = \Kiri::getDi()->get(EventDispatch::class);
$dispatch->dispatch(new OnShutdown($server)); $dispatch->dispatch(new OnShutdown($server));
} }