upekts: Fix error reporting during verify

We delayed the wrong error types for the early reporting mechanism.
This commit is contained in:
Benjamin Berg 2020-05-25 14:09:21 +02:00 committed by Benjamin Berg
parent 0936fc3597
commit b137807420
1 changed files with 1 additions and 1 deletions

View File

@ -1251,7 +1251,7 @@ do_verify_stop (FpDevice *dev, FpiMatchResult res, GError *error)
FpiSsm *ssm = deinitsm_new (dev, data);
/* Report the error immediately if possible, otherwise delay it. */
if (error && error->domain != FP_DEVICE_RETRY)
if (error && error->domain == FP_DEVICE_RETRY)
fpi_device_verify_report (dev, res, NULL, error);
else
data->error = error;