Blame SOURCES/0168-image-device-Fix-enroll-continuation-after-retry-err.patch

73b847
From 82e0ec9b9adc3638c7161177398d52deba3a58e5 Mon Sep 17 00:00:00 2001
73b847
From: Benjamin Berg <bberg@redhat.com>
73b847
Date: Thu, 2 Jan 2020 18:50:01 +0100
73b847
Subject: [PATCH 168/181] image-device: Fix enroll continuation after retry
73b847
 error
73b847
73b847
Continuing an enroll was broken in case of a retry error. Explicitly add
73b847
code to wait for the finger to go OFF after a retry error, and ensure
73b847
that the enroll will continue once that has happened.
73b847
---
73b847
 libfprint/fpi-image-device.c | 5 +++++
73b847
 1 file changed, 5 insertions(+)
73b847
73b847
diff --git a/libfprint/fpi-image-device.c b/libfprint/fpi-image-device.c
73b847
index 975e3a1..efdbb53 100644
73b847
--- a/libfprint/fpi-image-device.c
73b847
+++ b/libfprint/fpi-image-device.c
73b847
@@ -404,6 +404,11 @@ fpi_image_device_retry_scan (FpImageDevice *self, FpDeviceRetry retry)
73b847
     {
73b847
       g_debug ("Reporting retry during enroll");
73b847
       fpi_device_enroll_progress (FP_DEVICE (self), priv->enroll_stage, NULL, error);
73b847
+
73b847
+      /* Wait for finger removal and re-touch.
73b847
+       * TODO: Do we need to check that the finger is already off? */
73b847
+      priv->enroll_await_on_pending = TRUE;
73b847
+      fp_image_device_change_state (self, FPI_IMAGE_DEVICE_STATE_AWAIT_FINGER_OFF);
73b847
     }
73b847
   else
73b847
     {
73b847
-- 
73b847
2.24.1
73b847