Browse Source

Remove redunant call to close_socket (#911)

Ken Schalk 4 năm trước cách đây
mục cha
commit
7c60e69c33
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  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;
           }