Skip to content

Commit

Permalink
Merge branch 'release/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
heart committed Nov 9, 2020
2 parents 08769e2 + da5bd57 commit b4e39ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/CarBode/CameraPreview.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public class CameraPreview: UIView {
self.backgroundColor = UIColor.gray

DispatchQueue.global().async {
Thread.sleep(forTimeInterval: 0.2)
session.startRunning()
DispatchQueue.main.async {
let previewLayer = AVCaptureVideoPreviewLayer(session: session)
Expand Down

0 comments on commit b4e39ab

Please sign in to comment.