Skip to content

Commit 7c60e69

Browse files
authored
Remove redunant call to close_socket (#911)
1 parent 33e9489 commit 7c60e69

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

httplib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2244,7 +2244,6 @@ inline socket_t create_client_socket(
22442244
if (is_connection_error() ||
22452245
!wait_until_socket_is_ready(sock, connection_timeout_sec,
22462246
connection_timeout_usec)) {
2247-
close_socket(sock);
22482247
error = Error::Connection;
22492248
return false;
22502249
}

0 commit comments

Comments
 (0)