Skip to content

Commit da37c22

Browse files
authored
chore: kickoff release
2 parents cfdda77 + 601a402 commit da37c22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public final class FaceLivenessSession: LivenessService {
210210
connectingState == .normal,
211211
let savedURLForReconnect,
212212
let serverDate else {
213+
if let runtimeError = URLSessionWebSocketTask.CloseCode(rawValue: 4_005) {
214+
Amplify.log.verbose("\(#function): Closing websocket with runtime error")
215+
closeSocket(with: runtimeError)
216+
}
213217
onServiceException(.init(event: exceptionEvent))
214218
return .stopAndInvalidateSession
215219
}

0 commit comments

Comments
 (0)