prevent spam of console

pull/15010/head
Lukas Karel 2021-08-17 16:16:58 +02:00
parent d147abc3e5
commit 886b2e5000
1 changed files with 1 additions and 1 deletions

View File

@ -286,10 +286,10 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
}
if (ret < 0) {
print_mbedtls_error("mbedtls_ssl_handshake", ret);
if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) {
return NSAPI_ERROR_ALREADY;
} else {
print_mbedtls_error("mbedtls_ssl_handshake", ret);
return NSAPI_ERROR_AUTH_FAILURE;
}
}