diff --git a/app/http.php b/app/http.php index 17b2d693d5..360d21eb12 100644 --- a/app/http.php +++ b/app/http.php @@ -553,4 +553,6 @@ $swooleAdapter->onRequest(function ($utopiaRequest, $utopiaResponse) use ($files } }); -$swooleAdapter->start(); +\Swoole\Coroutine\run(static function () use ($swooleAdapter): void { + $swooleAdapter->start(); +});