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

Commit 10f04c89 authored by John Reck's avatar John Reck
Browse files

Wait for Overlay thread exit before returning

Fixes: 292390484
Test: screenrecord still works
Change-Id: I8ef8b38214511896ace1455fe1bc6d4199ba48c6
parent fb159b24
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -90,9 +90,12 @@ status_t Overlay::start(const sp<IGraphicBufferProducer>& outputSurface,

status_t Overlay::stop() {
    ALOGV("Overlay::stop");
    {
        Mutex::Autolock _l(mMutex);
        mState = STOPPING;
        mEventCond.signal();
    }
    join();
    return NO_ERROR;
}