Skip to content

Commit

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

0 comments on commit 8d23434

Please sign in to comment.