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

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

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

* commit 'b05eeaed':
  camera3: Fix crash in set error state.
parents 1d263b89 b05eeaed
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;