[secure-transport] remove extra mbedtls_ssl_close_notify() calls (#10947)

This commit removes the calls to `mbedtls_ssl_close_notify()` in
`SecureTransport::Process()` when, based on `rval`, it is determined
that `Disconnect()` should be called, as the `Disconnect()` method
itself will call `mbedtls_ssl_close_notify()`.
This commit is contained in:
Abtin Keshavarzian
2024-11-20 10:09:01 -08:00
committed by GitHub
parent 563df7dd56
commit 76a0334090
-2
View File
@@ -1049,7 +1049,6 @@ void SecureTransport::Process(void)
break;
case MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY:
mbedtls_ssl_close_notify(&mSsl);
disconnectEvent = kDisconnectedPeerClosed;
break;
@@ -1057,7 +1056,6 @@ void SecureTransport::Process(void)
break;
case MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE:
mbedtls_ssl_close_notify(&mSsl);
disconnectEvent = kDisconnectedError;
break;