Fix missing TLS state change on disconnection with OpenSSL
@@ -484,6 +484,7 @@ void TlsTransport::runRecvLoop() {
if (state() == State::Connected) {
PLOG_INFO << "TLS closed";
+ changeState(State::Disconnected);
recv(nullptr);
} else {
PLOG_ERROR << "TLS handshake failed";