Fix get_pending_error

GitOrigin-RevId: cc80c526df3d0ed8ceb76b8653ef4bb9f46311c4
This commit is contained in:
Arseny Smirnov 2018-09-25 14:36:39 +03:00
parent ca58d36d4d
commit 3d17b1b166
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ class ServerSocketFdImpl {
}
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();
}
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));

View File

@ -479,7 +479,7 @@ class UdpSocketFdImpl {
return info_.native_fd();
}
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();
}
TRY_STATUS(detail::get_socket_pending_error(get_native_fd()));