From 3d020138ac75e36a466035632d6cec350ce47d7b Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 16 Mar 2021 22:20:32 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 363345989 --- cpp/core/internal/bwu_manager.cc | 5 +++++ cpp/core/internal/bwu_manager.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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