Skip to content

Commit

Permalink
fix: Fix Camera not stopping when isActive is set to false (#2361)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy authored Jan 10, 2024
1 parent dc8df80 commit 2b10622
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 2b10622

@vercel
Copy link

@vercel vercel bot commented on 2b10622 Jan 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.