Skip to content

Commit 48aba3c

Browse files
authored
Merge pull request #1 from adafruit/main
merging EAGAIN changes
2 parents b97e2eb + f2cb3bb commit 48aba3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def _wait_for_msg(self, timeout=0.1):
889889
try:
890890
res = self._sock_exact_recv(1)
891891
except OSError as error:
892-
if error.errno == errno.ETIMEDOUT:
892+
if error.errno in (errno.ETIMEDOUT, errno.EAGAIN):
893893
# raised by a socket timeout if 0 bytes were present
894894
return None
895895
if error.errno == errno.EAGAIN:

0 commit comments

Comments
 (0)