Skip to content

Commit 3eb88f0

Browse files
Issue #126
Added bytearray('\x00') to the list of expected "noop" returns from the socket.
1 parent 199a0b8 commit 3eb88f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def _wait_for_msg(self, timeout=0.1):
896896

897897
# Block while we parse the rest of the response
898898
self._sock.settimeout(timeout)
899-
if res in [None, b""]:
899+
if res in [None, b"", bytearray(b'\x00')]:
900900
# If we get here, it means that there is nothing to be received
901901
return None
902902
if res[0] == MQTT_PINGRESP:

0 commit comments

Comments
 (0)