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

Commit 97a73887 authored by Atneya Nair's avatar Atneya Nair
Browse files

Fix incorrect lock in Threads

This lock doesn't actually lock (it creates a temporary).

Test: Compiles
Bug: 308518042
Change-Id: I805cf9c1104da7cc80fdf27102515488f2ff0374
parent e61737ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10297,7 +10297,7 @@ status_t MmapThread::standby()
NO_THREAD_SAFETY_ANALYSIS  // clang bug
{
    ALOGV("%s", __FUNCTION__);
    audio_utils::lock_guard(mutex());
    audio_utils::lock_guard l_{mutex()};

    if (mHalStream == 0) {
        return NO_INIT;