fix: Don't error if session closes

This commit is contained in:
Marc Rousavy 2023-08-21 14:01:22 +02:00
parent 390f48d6a4
commit 1f12192baf

View File

@ -442,7 +442,6 @@ class CameraSession(private val context: Context,
// 3. Create capture session with outputs // 3. Create capture session with outputs
val session = getCaptureSession(camera, outputs) { val session = getCaptureSession(camera, outputs) {
isRunning = false isRunning = false
onError(CameraDisconnectedError(cameraId, CameraDeviceError.DISCONNECTED))
} }
// 4. Create repeating request (configures FPS, HDR, etc.) // 4. Create repeating request (configures FPS, HDR, etc.)