Skip to content

Commit cac3b41

Browse files
authored
Merge pull request #232 from vladak/send_bytes_eagain
fix EAGAIN reference in _send_bytes()
2 parents b47a501 + 72f8e81 commit cac3b41

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
@@ -475,7 +475,7 @@ def _send_bytes(
475475
try:
476476
bytes_sent += self._sock.send(view[bytes_sent:])
477477
except OSError as exc:
478-
if exc.errno == EAGAIN:
478+
if exc.errno == errno.EAGAIN:
479479
continue
480480
raise
481481

0 commit comments

Comments
 (0)