Skip to content

Commit

Permalink
Issue adafruit#126
Browse files Browse the repository at this point in the history
Added bytearray('\x00') to the list of expected "noop" returns from
the socket.
  • Loading branch information
jinglemansweep committed Nov 16, 2022
1 parent 199a0b8 commit 3eb88f0
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"", bytearray(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 3eb88f0

Please sign in to comment.