From 8d23434b0a8156b15223730624713696493b4497 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Thu, 28 Dec 2023 15:02:57 -0600 Subject: [PATCH] Test timeout enhancement.8 --- src/Client.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index f995a92..67f6a47 100644 --- a/src/Client.php +++ b/src/Client.php @@ -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(); }