vfs5011: Don't submit an image if there was an error capturing it
This commit is contained in:
parent
4bfee76ead
commit
69de32f700
1 changed files with 1 additions and 2 deletions
|
@ -747,8 +747,7 @@ static void activate_loop_complete(struct fpi_ssm *ssm)
|
||||||
if (data->init_sequence.receive_buf != NULL)
|
if (data->init_sequence.receive_buf != NULL)
|
||||||
g_free(data->init_sequence.receive_buf);
|
g_free(data->init_sequence.receive_buf);
|
||||||
data->init_sequence.receive_buf = NULL;
|
data->init_sequence.receive_buf = NULL;
|
||||||
/* We don't want to submit image if we're in deactivating process */
|
if (!data->deactivating && !r) {
|
||||||
if (!data->deactivating) {
|
|
||||||
submit_image(ssm, data);
|
submit_image(ssm, data);
|
||||||
fpi_imgdev_report_finger_status(dev, FALSE);
|
fpi_imgdev_report_finger_status(dev, FALSE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue