fix: Return after configure error

This commit is contained in:
Marc Rousavy
2024-02-14 13:47:18 +01:00
parent 1a0bd8f7c2
commit 14daaaaf9d

View File

@@ -109,6 +109,7 @@ class CameraSession: NSObject, AVCaptureVideoDataOutputSampleBufferDelegate, AVC
try lambda(config) try lambda(config)
} catch { } catch {
self.onConfigureError(error) self.onConfigureError(error)
return
} }
let difference = CameraConfiguration.Difference(between: self.configuration, and: config) let difference = CameraConfiguration.Difference(between: self.configuration, and: config)