Skip to content

Commit

Permalink
Fix Right side of && is always true
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Aug 1, 2022
1 parent 38d38a2 commit bd9f57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit bd9f57e

Please sign in to comment.