Skip to content

Commit b2f9089

Browse files
committed
Drop async work from CameraView deinit
1 parent 457fb9d commit b2f9089

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package/ios/React/CameraView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ public final class CameraView: UIView, CameraSessionDelegate, PreviewViewDelegat
141141
}
142142

143143
deinit {
144-
deactivateCameraSession()
144+
// Allow phone to sleep
145+
UIApplication.shared.isIdleTimerDisabled = false
146+
// Bail on any in flight configure calls
147+
currentConfigureCall.increment()
145148
}
146149

147150
override public func layoutSubviews() {

0 commit comments

Comments
 (0)