Index: net/socket/tcp_client_socket_libevent.cc |
diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc |
index 102a8fbc77cc875ab2a6a09c9ce8251a15d31a6d..802dcc9f5f625993cb563132a5af60d95b613e8c 100644 |
--- a/net/socket/tcp_client_socket_libevent.cc |
+++ b/net/socket/tcp_client_socket_libevent.cc |
@@ -256,7 +256,8 @@ void TCPClientSocketLibevent::DoDisconnect() { |
DCHECK(ok); |
ok = write_socket_watcher_.StopWatchingFileDescriptor(); |
DCHECK(ok); |
- HANDLE_EINTR(close(socket_)); |
+ if (HANDLE_EINTR(close(socket_)) < 0) |
+ PLOG(ERROR) << "close"; |
socket_ = kInvalidSocket; |
} |