Fix get_pending_error
GitOrigin-RevId: cc80c526df3d0ed8ceb76b8653ef4bb9f46311c4
This commit is contained in:
parent
ca58d36d4d
commit
3d17b1b166
@ -252,7 +252,7 @@ class ServerSocketFdImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status get_pending_error() {
|
Status get_pending_error() {
|
||||||
if (get_poll_info().get_flags().has_pending_error()) {
|
if (!get_poll_info().get_flags().has_pending_error()) {
|
||||||
return Status::OK();
|
return Status::OK();
|
||||||
}
|
}
|
||||||
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));
|
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));
|
||||||
|
@ -479,7 +479,7 @@ class UdpSocketFdImpl {
|
|||||||
return info_.native_fd();
|
return info_.native_fd();
|
||||||
}
|
}
|
||||||
Status get_pending_error() {
|
Status get_pending_error() {
|
||||||
if (get_poll_info().get_flags().has_pending_error()) {
|
if (!get_poll_info().get_flags().has_pending_error()) {
|
||||||
return Status::OK();
|
return Status::OK();
|
||||||
}
|
}
|
||||||
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));
|
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));
|
||||||
|
Reference in New Issue
Block a user