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

Commit 811abfd8 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

[le audio] Fix crash when terminating big during streaming

There could be one case that BIG is teared down due to BT shut down.
We need to validate iso_impl_ before using it.

Bug: 291516832
Tag: #bug
Test: atest net_test_btm_iso
Test: manual test with BT off and confirm no crash
Change-Id: Id3612d0f5651f91d5f7e871c6c38624c072cd874
parent b9b29806
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -112,6 +112,7 @@ void IsoManager::CreateBig(uint8_t big_id,
}

void IsoManager::TerminateBig(uint8_t big_id, uint8_t reason) {
  if (pimpl_->IsRunning())
    pimpl_->iso_impl_->terminate_big(big_id, reason);
}