Skip to content

Commit

Permalink
update dispatching of final video event
Browse files Browse the repository at this point in the history
  • Loading branch information
phantumcode committed Dec 4, 2023
1 parent e92b887 commit 1fc807d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extension FaceLivenessDetectionViewModel: VideoSegmentProcessor {
sendVideoEvent(data: chunk, videoEventTime: .zero)
if !hasSentFinalVideoEvent,
case .completedDisplayingFreshness = livenessState.state {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.9) {
DispatchQueue.global(qos: .default).asyncAfter(deadline: .now() + 0.9) {
self.sendFinalVideoEvent()
}
}
Expand Down

0 comments on commit 1fc807d

Please sign in to comment.