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

Commit 64df3f53 authored by Bao Do's avatar Bao Do Committed by Gerrit Code Review
Browse files

Merge "Remove lock from FetchAudioProvider." into main

parents e4ed3dec a0fbb0ea
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -135,8 +135,6 @@ void BluetoothAudioClientInterface::FetchAudioProvider() {
  if (provider_ != nullptr) {
    log::warn("refetch");
  }
  // Prevent other access to the AIDL if currently fetching new service
  std::lock_guard<std::mutex> guard(internal_mutex_);
  // Retry if audioserver restarts in the middle of fetching.
  // When audioserver restarts, IBluetoothAudioProviderFactory service is also
  // re-registered, so we need to re-fetch the service.