Merge pull request #7779 from jepler/revert-socket-error
Revert "Correctly raise OS error in socketpool_socket_recv_into()"
This commit is contained in:
commit
2282d8ea2d
@ -1109,7 +1109,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket,
|
||||
break;
|
||||
}
|
||||
if (ret == (unsigned)-1) {
|
||||
mp_raise_OSError(_errno);
|
||||
return -_errno;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user