diff --git a/src/oatpp-mbedtls/client/ConnectionProvider.cpp b/src/oatpp-mbedtls/client/ConnectionProvider.cpp index f86a0d8..c10b15d 100644 --- a/src/oatpp-mbedtls/client/ConnectionProvider.cpp +++ b/src/oatpp-mbedtls/client/ConnectionProvider.cpp @@ -78,6 +78,10 @@ std::shared_ptr ConnectionProvider::createShared(const std:: ); } +void ConnectionProvider::stop() { + m_streamProvider->stop(); +} + provider::ResourceHandle ConnectionProvider::get(){ v_int32 flags; diff --git a/src/oatpp-mbedtls/client/ConnectionProvider.hpp b/src/oatpp-mbedtls/client/ConnectionProvider.hpp index 0617878..987d9e0 100644 --- a/src/oatpp-mbedtls/client/ConnectionProvider.hpp +++ b/src/oatpp-mbedtls/client/ConnectionProvider.hpp @@ -78,11 +78,9 @@ class ConnectionProvider : public oatpp::network::ClientConnectionProvider { const network::Address& address); /** - * Implements &id:oatpp::network::ConnectionProvider::close;. Here does nothing. + * Implements &id:oatpp::network::ConnectionProvider::close; */ - void stop() override { - // DO NOTHING - } + void stop() override; /** * Get connection.