Skip to content

Commit

Permalink
fix: Cancel focus on session close (#2578)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 19, 2024
1 parent 2c52fb0 commit 9af6e61
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class PersistentCameraCaptureSession(private val cameraManager: CameraManager, p
get() = isActive && session != null && device != null && !didDestroyFromOutside

override fun close() {
focusJob?.cancel()
session?.tryAbortCaptures()
device?.close()
}
Expand Down

0 comments on commit 9af6e61

Please sign in to comment.