Skip to content

Commit 57ed4f0

Browse files
authored
Merge pull request #237 from vladak/remove_recv_into_workaround
no need to check zero byte returned from recv_into()
2 parents d4b87d2 + b8fa023 commit 57ed4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: adafruit_minimqtt/adafruit_minimqtt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def _wait_for_msg( # noqa: PLR0912, Too many branches
10151015
return None
10161016
raise MMQTTException from error
10171017

1018-
if res in [None, b"", b"\x00"]:
1018+
if res in [None, b""]:
10191019
# If we get here, it means that there is nothing to be received
10201020
return None
10211021
pkt_type = res[0] & MQTT_PKT_TYPE_MASK

0 commit comments

Comments
 (0)