From 6971131f3f05139464f6dcead5c0bc5a07562d89 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Thu, 28 Dec 2023 14:51:30 -0600 Subject: [PATCH] Test timeout enhancement.2 --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 304495f..9f80dd1 100644 --- a/src/Client.php +++ b/src/Client.php @@ -207,7 +207,7 @@ protected function handleClientConnection(): void call_user_func($this->onMessageCallback, $this, $message); } } catch (TimeoutException $e) { - if ($this->timeout !== -1) { + if ($this->timeout === -1) { throw $e; } } catch (Exception $e) {