Skip to content

Commit

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

0 comments on commit a7b2fea

Please sign in to comment.