Remove redunant call to close_socket (#911)
This commit is contained in:
parent
33e94891ee
commit
7c60e69c33
@ -2244,7 +2244,6 @@ inline socket_t create_client_socket(
|
|||||||
if (is_connection_error() ||
|
if (is_connection_error() ||
|
||||||
!wait_until_socket_is_ready(sock, connection_timeout_sec,
|
!wait_until_socket_is_ready(sock, connection_timeout_sec,
|
||||||
connection_timeout_usec)) {
|
connection_timeout_usec)) {
|
||||||
close_socket(sock);
|
|
||||||
error = Error::Connection;
|
error = Error::Connection;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user