diff --git a/src/Server.php b/src/Server.php index 3f7579d..03d6c73 100644 --- a/src/Server.php +++ b/src/Server.php @@ -124,6 +124,7 @@ public function __construct( $this->host = $host; $this->port = $port; $this->ipcSocketPath = $ipcSocketPath; + $this->timers = new TimerCollection(); } /** @@ -137,7 +138,6 @@ public function run(): void ob_implicit_flush(); $this->createSocket($this->host, $this->port); $this->openIPCSocket($this->ipcSocketPath); - $this->timers = new TimerCollection(); $this->log('Server created'); while (true) {