From 8108dda1d9197385a4a86cb5bb935a5f34b4c50b Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Mon, 24 Sep 2018 18:26:29 +0300 Subject: [PATCH] SocketFd::get_pending_error bugfix GitOrigin-RevId: e0596cec033a162fbca15a14f078c6a9cdbd8ff5 --- tdutils/td/utils/port/SocketFd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdutils/td/utils/port/SocketFd.cpp b/tdutils/td/utils/port/SocketFd.cpp index 5fb84063..b5bd8aa3 100644 --- a/tdutils/td/utils/port/SocketFd.cpp +++ b/tdutils/td/utils/port/SocketFd.cpp @@ -433,7 +433,7 @@ class SocketFdImpl { } } 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()));