Skip to content

Commit b707805

Browse files
authored
Merge pull request #127 from jinglemansweep/main
Issue #126
2 parents 199a0b8 + 52d6af6 commit b707805

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"", 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)