SocketFd::get_pending_error bugfix

GitOrigin-RevId: e0596cec033a162fbca15a14f078c6a9cdbd8ff5
This commit is contained in:
Arseny Smirnov 2018-09-24 18:26:29 +03:00
parent 81c0afafa3
commit 8108dda1d9

View File

@ -433,7 +433,7 @@ class SocketFdImpl {
} }
} }
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()));