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

Commit a072ad99 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Camera: Limit the scope 'mTrackerLock' within 'disconnectImpl'"

parents f2967429 2843c36c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -281,7 +281,6 @@ status_t Camera3Device::disconnect() {
status_t Camera3Device::disconnectImpl() {
    ATRACE_CALL();
    Mutex::Autolock il(mInterfaceLock);
    Mutex::Autolock stLock(mTrackerLock);

    ALOGI("%s: E", __FUNCTION__);

@@ -346,6 +345,7 @@ status_t Camera3Device::disconnectImpl() {
    {
        Mutex::Autolock l(mLock);
        mRequestThread.clear();
        Mutex::Autolock stLock(mTrackerLock);
        mStatusTracker.clear();
        interface = mInterface.get();
    }