Skip to content

Commit

Permalink
Merge pull request #232 from vladak/send_bytes_eagain
Browse files Browse the repository at this point in the history
fix EAGAIN reference in _send_bytes()
  • Loading branch information
dhalbert authored Jan 2, 2025
2 parents b47a501 + 72f8e81 commit cac3b41
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 @@ -475,7 +475,7 @@ def _send_bytes(
try:
bytes_sent += self._sock.send(view[bytes_sent:])
except OSError as exc:
if exc.errno == EAGAIN:
if exc.errno == errno.EAGAIN:
continue
raise

Expand Down

0 comments on commit cac3b41

Please sign in to comment.