mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-10 09:43:51 +00:00
Fix #697
This commit is contained in:
parent
3b29cd0bdc
commit
6d66721ba1
@ -6104,12 +6104,12 @@ inline bool SSLClient::initialize_ssl(Socket &socket) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void SSLClient::close_socket(Socket &socket, bool process_socket_ret) {
|
inline void SSLClient::close_socket(Socket &socket, bool process_socket_ret) {
|
||||||
detail::close_socket(socket.sock);
|
|
||||||
socket_.sock = INVALID_SOCKET;
|
|
||||||
if (socket.ssl) {
|
if (socket.ssl) {
|
||||||
detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret);
|
detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret);
|
||||||
socket_.ssl = nullptr;
|
socket_.ssl = nullptr;
|
||||||
}
|
}
|
||||||
|
detail::close_socket(socket.sock);
|
||||||
|
socket_.sock = INVALID_SOCKET;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user