Skip to content

Commit

Permalink
Merge pull request #1 from adafruit/main
Browse files Browse the repository at this point in the history
merging EAGAIN changes
  • Loading branch information
calcut authored Oct 4, 2022
2 parents b97e2eb + f2cb3bb commit 48aba3c
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 @@ -889,7 +889,7 @@ def _wait_for_msg(self, timeout=0.1):
try:
res = self._sock_exact_recv(1)
except OSError as error:
if error.errno == errno.ETIMEDOUT:
if error.errno in (errno.ETIMEDOUT, errno.EAGAIN):
# raised by a socket timeout if 0 bytes were present
return None
if error.errno == errno.EAGAIN:
Expand Down

0 comments on commit 48aba3c

Please sign in to comment.