Skip to content

Commit

Permalink
Fixed a problem $timers must not be accessed before initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
haugli92 committed Mar 14, 2022
1 parent 1c9a98a commit 73a1b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public function __construct(
$this->host = $host;
$this->port = $port;
$this->ipcSocketPath = $ipcSocketPath;
$this->timers = new TimerCollection();
}

/**
Expand All @@ -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) {
Expand Down

0 comments on commit 73a1b65

Please sign in to comment.