Skip to content

Commit

Permalink
Merge pull request #127 from jinglemansweep/main
Browse files Browse the repository at this point in the history
Issue #126
  • Loading branch information
dhalbert authored Nov 16, 2022
2 parents 199a0b8 + 52d6af6 commit b707805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def _wait_for_msg(self, timeout=0.1):

# Block while we parse the rest of the response
self._sock.settimeout(timeout)
if res in [None, b""]:
if res in [None, b"", b"\x00"]:
# If we get here, it means that there is nothing to be received
return None
if res[0] == MQTT_PINGRESP:
Expand Down

0 comments on commit b707805

Please sign in to comment.