Skip to content

Commit 9fa521f

Browse files
authored
fix(predictions): update liveness websocket send event to be synchronous (#3693)
1 parent d888124 commit 9fa521f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AmplifyPlugins/Predictions/AWSPredictionsPlugin/Liveness/Service/FaceLivenessSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public final class FaceLivenessSession: LivenessService {
8484
_ event: LivenessEvent<T>,
8585
eventDate: @escaping () -> Date = Date.init
8686
) {
87-
livenessServiceDispatchQueue.async {
87+
livenessServiceDispatchQueue.sync {
8888
let encodedPayload = self.eventStreamEncoder.encode(
8989
payload: event.payload,
9090
headers: [

0 commit comments

Comments
 (0)