Skip to content

Commit

Permalink
Correctly raise OS error in socketpool_socket_recv_into()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavePutz committed Feb 21, 2023
1 parent 9c0165f commit 7e6e824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/socketpool/Socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket,
break;
}
if (ret == (unsigned)-1) {
return -_errno;
mp_raise_OSError(_errno);
}
return ret;
}
Expand Down

0 comments on commit 7e6e824

Please sign in to comment.