Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/client/SSLClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,13 @@ class BSSL_SSLClient : public Client

void stop() override
{
// Plain connection, or a TLS handshake that failed: there is no TLS session to close, but the socket is still open
if (!_secure)
{
if (_basic_client)
_basic_client->stop();
return;
}

// Only if we've already connected, store session params and clear the connection options
if (_session)
Expand Down