From 9bfb80be783e29e1b2f1bdfa22323886f9c31527 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Wed, 26 Aug 2020 07:30:00 -0700 Subject: [PATCH] RootCanal: Reset the model in BluetoothHci::close Bug: 166326066 Tag: #stability Test: com.android.devicehealthchecks Change-Id: Ia75d07e34a38a74d2f09b6174a387089029e9318 --- test/rootcanal/bluetooth_hci.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/rootcanal/bluetooth_hci.cc b/test/rootcanal/bluetooth_hci.cc index 255dbffd8..926408fa0 100644 --- a/test/rootcanal/bluetooth_hci.cc +++ b/test/rootcanal/bluetooth_hci.cc @@ -164,8 +164,6 @@ Return BluetoothHci::initialize_impl( controller_->RegisterTaskCancel( [this](AsyncTaskId task) { async_manager_.CancelAsyncTask(task); }); - test_model_.Reset(); - // Add the controller as a device in the model. size_t controller_index = test_model_.Add(controller_); size_t low_energy_phy_index = @@ -225,6 +223,7 @@ Return BluetoothHci::initialize_impl( Return BluetoothHci::close() { LOG_INFO("%s", __func__); + test_model_.Reset(); return Void(); } -- 2.11.0