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

Commit dcb614cd authored by Zhijun He's avatar Zhijun He Committed by Android Git Automerger
Browse files

am e097efde: am b05eeaed: camera3: Fix crash in set error state.

* commit 'e097efde':
  camera3: Fix crash in set error state.
parents 9490a96e e097efde
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1125,7 +1125,7 @@ void Camera3Device::setErrorStateLockedV(const char *fmt, va_list args) {
    ALOGE("Camera %d: %s", mId, errorCause.string());

    // But only do error state transition steps for the first error
    if (mStatus == STATUS_ERROR) return;
    if (mStatus == STATUS_ERROR || mStatus == STATUS_UNINITIALIZED) return;

    mErrorCause = errorCause;