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

Commit a68b10a4 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Gerrit Code Review
Browse files

Merge "libcameraservice: Allow media server to disconnect camera even unlocked"

parents 7abffd68 418f4d13
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -236,11 +236,6 @@ void CameraClient::disconnect() {
        return;
    }

    if (mClientPid <= 0) {
        LOG1("camera is unlocked (mClientPid = %d), don't tear down hardware", mClientPid);
        return;
    }

    // Make sure disconnect() is done once and once only, whether it is called
    // from the user directly, or called by the destructor.
    if (mHardware == 0) return;