Skip to content

Commit 536e7eb

Browse files
committed
Revert "Fix #697". (It broke unit test...)
This reverts commit 6d66721.
1 parent 6d66721 commit 536e7eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httplib.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6104,12 +6104,12 @@ inline bool SSLClient::initialize_ssl(Socket &socket) {
61046104
}
61056105

61066106
inline void SSLClient::close_socket(Socket &socket, bool process_socket_ret) {
6107+
detail::close_socket(socket.sock);
6108+
socket_.sock = INVALID_SOCKET;
61076109
if (socket.ssl) {
61086110
detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret);
61096111
socket_.ssl = nullptr;
61106112
}
6111-
detail::close_socket(socket.sock);
6112-
socket_.sock = INVALID_SOCKET;
61136113
}
61146114

61156115
inline bool

0 commit comments

Comments
 (0)