Remove redunant call to close_socket (#911)

This commit is contained in:
Ken Schalk authored and GitHub committed 2021-04-23 17:07:19 -04:00
1 parent 33e94891ee
commit 7c60e69c33
1 file changed
-1
-1
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;
}