From 7c60e69c339b93c579c5f9c5bc0da4fba259f8ef Mon Sep 17 00:00:00 2001 From: Ken Schalk Date: Fri, 23 Apr 2021 17:07:19 -0400 Subject: [PATCH] Remove redunant call to close_socket (#911) --- httplib.h | 1 - 1 file changed, 1 deletion(-) diff --git a/httplib.h b/httplib.h index 9298429..a7a1973 100644 --- a/httplib.h +++ b/httplib.h @@ -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; }