From 021f62f53f1a80d5b8b98689114ed2a88abb70c0 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Fri, 29 Dec 2023 19:34:36 -0600 Subject: [PATCH] Merge --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 67f6a47..a121624 100644 --- a/src/Client.php +++ b/src/Client.php @@ -201,7 +201,7 @@ protected function handleClientConnection(): void $this->connectionReady(); try { - while ($message = $this->client->receive()) { + while ($this->client && $message = $this->client->receive()) { if (null === $this->onMessageCallback) { continue; }