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

Commit dc90f241 authored by Phil Burk's avatar Phil Burk Committed by Automerger Merge Worker
Browse files

aaudio: unlock when joining the timestamp thread am: 5f6fda77

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/14937760

Change-Id: I6f02ec952cf8ff19924332f763c321ec60918a51
parents 9b2bd3cd 5f6fda77
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -338,7 +338,12 @@ aaudio_result_t AAudioServiceStreamBase::stop_l() {

    setState(AAUDIO_STREAM_STATE_STOPPING);

    // Temporarily unlock because we are joining the timestamp thread and it may try
    // to acquire mLock.
    mLock.unlock();
    result = stopTimestampThread();
    mLock.lock();

    if (result != AAUDIO_OK) {
        disconnect_l();
        return result;