goodix: Consume the retry errors during verify/identify reports
We should not pass such kind of errors to complete functions, or we'll fail the identification without ability to retry immediately.
This commit is contained in:
parent
b2a64cc980
commit
6a62d32c81
1 changed files with 2 additions and 2 deletions
|
@ -468,9 +468,9 @@ fp_verify_ssm_done (FpiSsm *ssm, FpDevice *dev, GError *error)
|
||||||
if (error && error->domain == FP_DEVICE_RETRY)
|
if (error && error->domain == FP_DEVICE_RETRY)
|
||||||
{
|
{
|
||||||
if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY)
|
if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY)
|
||||||
fpi_device_verify_report (dev, FPI_MATCH_ERROR, NULL, error);
|
fpi_device_verify_report (dev, FPI_MATCH_ERROR, NULL, g_steal_pointer (&error));
|
||||||
else
|
else
|
||||||
fpi_device_identify_report (dev, NULL, NULL, error);
|
fpi_device_identify_report (dev, NULL, NULL, g_steal_pointer (&error));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY)
|
if (fpi_device_get_current_action (dev) == FPI_DEVICE_ACTION_VERIFY)
|
||||||
|
|
Loading…
Reference in a new issue