1
0
mirror of synced 2025-04-26 14:28:51 +03:00

Remove redunant call to close_socket (#911)

This commit is contained in:
Ken Schalk 2021-04-23 17:07:19 -04:00 committed by GitHub
parent 33e94891ee
commit 7c60e69c33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2244,7 +2244,6 @@ inline socket_t create_client_socket(
if (is_connection_error() ||
!wait_until_socket_is_ready(sock, connection_timeout_sec,
connection_timeout_usec)) {
close_socket(sock);
error = Error::Connection;
return false;
}