diff --git a/cpp/core/internal/bwu_manager.cc b/cpp/core/internal/bwu_manager.cc index b8b867ae..d9c58144 100644 --- a/cpp/core/internal/bwu_manager.cc +++ b/cpp/core/internal/bwu_manager.cc @@ -67,6 +67,11 @@ BwuManager::BwuManager( V1Frame::BANDWIDTH_UPGRADE_NEGOTIATION, this); } +BwuManager::~BwuManager() { + NEARBY_LOG(INFO, "BwuManager going down"); + Shutdown(); +} + void BwuManager::InitBwuHandlers() { // Register the supported concrete BwuMedium implementations. BwuHandler::BwuNotifications notifications{ diff --git a/cpp/core/internal/bwu_manager.h b/cpp/core/internal/bwu_manager.h index f0916eec..2ba37666 100644 --- a/cpp/core/internal/bwu_manager.h +++ b/cpp/core/internal/bwu_manager.h @@ -74,7 +74,7 @@ class BwuManager : public EndpointManager::FrameProcessor { absl::flat_hash_map> handlers, Config config); - ~BwuManager() override = default; + ~BwuManager() override; // This is the point on the outbound BWU protocol where the handler_ is set. // Function initiates the bandwidth upgrade and sends an