Merge change 3551 into donut
* changes: Allow the owner to reconnect to Camera.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user