mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Remove redunant call to close_socket (#911)
This commit is contained in:
parent
33e94891ee
commit
7c60e69c33
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue