summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_device.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp
index bd341888..fe29b7bc 100644
--- a/src/android/camera_device.cpp
+++ b/src/android/camera_device.cpp
@@ -1075,16 +1075,17 @@ void CameraDevice::requestComplete(Request *request)
if (descriptor->request_->cookie() != request->cookie()) {
/*
* \todo Clarify if the Camera has to be closed on
- * ERROR_DEVICE and possibly demote the Fatal to simple
- * Error.
+ * ERROR_DEVICE.
*/
- notifyError(0, nullptr, CAMERA3_MSG_ERROR_DEVICE);
- LOG(HAL, Fatal)
+ LOG(HAL, Error)
<< "Out-of-order completion for request "
<< utils::hex(request->cookie());
MutexLocker descriptorsLock(descriptorsMutex_);
descriptors_.pop();
+
+ notifyError(0, nullptr, CAMERA3_MSG_ERROR_DEVICE);
+
return;
}