Skip to content

Commit 8a65c4e

Browse files
committed
correcting duplicate EAGAIN handling
1 parent 48aba3c commit 8a65c4e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

-3
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,6 @@ def _wait_for_msg(self, timeout=0.1):
892892
if error.errno in (errno.ETIMEDOUT, errno.EAGAIN):
893893
# raised by a socket timeout if 0 bytes were present
894894
return None
895-
if error.errno == errno.EAGAIN:
896-
# there is no data available right now, try again later
897-
return None
898895
raise MMQTTException from error
899896

900897
# Block while we parse the rest of the response

0 commit comments

Comments
 (0)