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) {