Skip to content

Commit 584f007

Browse files
author
khai.do.appetiser
committed
add sync
1 parent 0c52a95 commit 584f007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/W3WSwiftComponentsOcr/Camera/W3WOcrCamera.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public class W3WOcrCamera: W3WVideoStream {
118118
disconnectInputAndOutput()
119119
#else
120120

121-
thread.async { [weak self] in
121+
thread.sync { [weak self] in
122122
guard let self else { return }
123123
self.session?.beginConfiguration()
124124
self.session?.commitConfiguration()

0 commit comments

Comments
 (0)