Browse Source

Remove redunant call to close_socket (#911)

Ken Schalk 4 years ago
parent
commit
7c60e69c33
1 changed files with 0 additions and 1 deletions
  1. 0 1
      httplib.h

+ 0 - 1
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;
           }