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

Commit 34e5a156 authored by Chih-Chung Chang's avatar Chih-Chung Chang
Browse files

Allow the owner to reconnect to Camera.

parent bf07da97
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -245,7 +245,7 @@ status_t CameraService::Client::connect(const sp<ICameraClient>& client)
        sp<ICameraClient> oldClient;
        sp<ICameraClient> oldClient;
        {
        {
            Mutex::Autolock _l(mLock);
            Mutex::Autolock _l(mLock);
            if (mClientPid != 0) {
            if (mClientPid != 0 && checkPid() != NO_ERROR) {
                LOGW("Tried to connect to locked camera");
                LOGW("Tried to connect to locked camera");
                return -EBUSY;
                return -EBUSY;
            }
            }