From 7cf5329c16b390cee07493f34f9bffce8ed5e9df Mon Sep 17 00:00:00 2001 From: Tuan Pham <103537251+phantumcode@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:06:47 -0500 Subject: [PATCH] fix: prevent duplicate session timeout error messages (#70) --- ...ceLivenessDetectionViewModel+FaceDetectionResultHandler.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel+FaceDetectionResultHandler.swift b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel+FaceDetectionResultHandler.swift index 28fbbb42..22c33a74 100644 --- a/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel+FaceDetectionResultHandler.swift +++ b/Sources/FaceLiveness/Views/Liveness/FaceLivenessDetectionViewModel+FaceDetectionResultHandler.swift @@ -128,6 +128,7 @@ extension FaceLivenessDetectionViewModel: FaceDetectionResultHandler { } private func handleSessionTimedOut() { + noFitStartTime = nil DispatchQueue.main.async { self.livenessState .unrecoverableStateEncountered(.timedOut)