Skip to content

Commit

Permalink
Test timeout enhancement.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lotharthesavior committed Dec 28, 2023
1 parent a7b2fea commit 6e578d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function connect(): void
go(fn () => $this->startConnection());
go(fn () => Timer::tick(5000, function (int $timerId) {
$this->pingTimer = $timerId;
if ($this->client->isConnected()) {
if ($this->getClient() && $this->getClient()->isConnected()) {
$this->getClient()->ping();
}
}));
Expand Down

0 comments on commit 6e578d1

Please sign in to comment.