Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40d1a564 authored by Myles Watson's avatar Myles Watson
Browse files

HCI: Check the status of the close() call

Bug: 230404101
Test: kill the HAL right before closing (racy)
Ignore-AOSP-First: Already in AOSP
Change-Id: I35d4d22c1bd565588bbd94d02cc9e749055f56ad
(cherry picked from commit 85628341)
parent e11eb426
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -246,7 +246,10 @@ class HciHalHidl : public HciHal {
    if (!death_unlink.isOk()) {
      LOG_ERROR("Error unlinking death recipient from the Bluetooth HAL");
    }
    bt_hci_->close();
    auto close_status = bt_hci_->close();
    if (!close_status.isOk()) {
      LOG_ERROR("Error calling close on the Bluetooth HAL");
    }
    callbacks_->ResetCallback();
    bt_hci_ = nullptr;
    bt_hci_1_1_ = nullptr;