fix: Fix Camera not stopping when isActive is set to false (#2361)

This commit is contained in:
Marc Rousavy 2024-01-10 16:00:28 +01:00 committed by GitHub
parent dc8df80085
commit 2b10622559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -520,6 +520,7 @@ class CameraSession(private val context: Context, private val cameraManager: Cam
if (!config.isActive) {
isRunning = false
captureSession?.stopRepeating()
return
}
if (captureSession == null) {