diff --git a/src/Http/Server.php b/src/Http/Server.php index 9b23ef5e..9990e206 100644 --- a/src/Http/Server.php +++ b/src/Http/Server.php @@ -17,7 +17,7 @@ class Server public function __construct(protected ServerInterface $socket, protected Router $router, protected ?LoopInterface $loop = null) { gc_disable(); - + $this->loop = $loop ?: Loop::get(); $this->loop->addPeriodicTimer(30, fn () => gc_collect_cycles());