Legacy shim acl releases controller resources
Bug:
166280067
Tag: #refactor
Test: act.py -tc BleCocTest
Test: ble paired 2 phones
Test: classic paired Bose SoundLink
Change-Id: I78ccd0d541f82bfec86180f2c2dd0521af651b6d
if (!common::InitFlags::GdCoreEnabled()) {
bluetooth::shim::hci_on_shutting_down();
}
- ASSERT_LOG(is_running_, "%s Gd stack not running", __func__);
- is_running_ = false;
-
delete acl_;
acl_ = nullptr;
+ ASSERT_LOG(is_running_, "%s Gd stack not running", __func__);
+ is_running_ = false;
+
delete btm_;
btm_ = nullptr;