fix: Don't error if session closes
This commit is contained in:
parent
390f48d6a4
commit
1f12192baf
@ -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.)
|
||||||
|
Loading…
Reference in New Issue
Block a user