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

Commit 59c35f0b authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Immediately disable to prevent unstable state inspection am: 3568be5d

parents 6355d7cf 3568be5d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1159,6 +1159,7 @@ bt_status_t BtifAvSource::Init(
void BtifAvSource::Cleanup() {
  LOG_INFO("%s", __PRETTY_FUNCTION__);
  if (!enabled_) return;
  enabled_ = false;

  btif_queue_cleanup(UUID_SERVCLASS_AUDIO_SOURCE);

@@ -1174,7 +1175,6 @@ void BtifAvSource::Cleanup() {
  CleanupAllPeers();

  callbacks_ = nullptr;
  enabled_ = false;
}

BtifAvPeer* BtifAvSource::FindPeer(const RawAddress& peer_address) {
@@ -1416,6 +1416,7 @@ bt_status_t BtifAvSink::Init(btav_sink_callbacks_t* callbacks,
void BtifAvSink::Cleanup() {
  LOG_INFO("%s", __PRETTY_FUNCTION__);
  if (!enabled_) return;
  enabled_ = false;

  btif_queue_cleanup(UUID_SERVCLASS_AUDIO_SINK);

@@ -1431,7 +1432,6 @@ void BtifAvSink::Cleanup() {
  CleanupAllPeers();

  callbacks_ = nullptr;
  enabled_ = false;
}

BtifAvPeer* BtifAvSink::FindPeer(const RawAddress& peer_address) {