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

Commit 375379a4 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "Fix unreleased mutex in ToneGenerator stopTone()" into jb-mr2-dev

parents 38ea629e 704455a5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1012,6 +1012,7 @@ void ToneGenerator::stopTone() {
        if (lStatus == NO_ERROR) {
        if (lStatus == NO_ERROR) {
            // If the tone was restarted exit now before calling clearWaveGens();
            // If the tone was restarted exit now before calling clearWaveGens();
            if (mState != TONE_INIT) {
            if (mState != TONE_INIT) {
                mLock.unlock();
                return;
                return;
            }
            }
            ALOGV("track stop complete, time %d", (unsigned int)(systemTime()/1000000));
            ALOGV("track stop complete, time %d", (unsigned int)(systemTime()/1000000));