Skip to content

Commit 6d66721

Browse files
committed
Fix #697
1 parent 3b29cd0 commit 6d66721

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;
61096107
if (socket.ssl) {
61106108
detail::ssl_delete(ctx_mutex_, socket.ssl, process_socket_ret);
61116109
socket_.ssl = nullptr;
61126110
}
6111+
detail::close_socket(socket.sock);
6112+
socket_.sock = INVALID_SOCKET;
61136113
}
61146114

61156115
inline bool

0 commit comments

Comments
 (0)