Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ public final class FaceLivenessSession: LivenessService {
let savedURLForReconnect,
let serverDate else {
onServiceException(.init(event: exceptionEvent))
// send onComplete with runtime error close code
if let runtimeError = URLSessionWebSocketTask.CloseCode(rawValue: 4_005) {
onComplete(.unexpectedClosure(runtimeError))
}
return .stopAndInvalidateSession
}

Expand Down
Loading