From bd9f57e4c22465b245ff69979b57b4dcaa4f3cc9 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Mon, 1 Aug 2022 08:50:01 +0800 Subject: [PATCH] Fix Right side of && is always true --- src/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 38154cc..a6f112a 100644 --- a/src/Client.php +++ b/src/Client.php @@ -229,7 +229,7 @@ public function recv() $this->connect($this->getConnectData('clean_session') ?? true, $this->getConnectData('will') ?? []); } elseif ($response === false && $this->client->errCode !== SOCKET_ETIMEDOUT) { $this->handleException(); - } elseif (is_string($response) && strlen($response) != 0) { + } elseif (is_string($response) && strlen($response) !== 0) { $this->handleVerbose($response); if ($this->getConfig()->isMQTT5()) {