Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
libfprint
libfprint
Commits
5beac0de
Commit
5beac0de
authored
Dec 22, 2021
by
Matthew Mirvish
Committed by
Matthew Mirvish
Dec 23, 2021
Browse files
elanspi: Try to avoid cancellation problems
parent
75655629
Pipeline
#476989
failed with stages
in 2 minutes and 50 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
libfprint/drivers/elanspi.c
View file @
5beac0de
...
...
@@ -439,6 +439,12 @@ elanspi_capture_old_line_handler (FpiSpiTransfer *transfer, FpDevice *dev, gpoin
}
else
{
/* check for termination */
if
(
fpi_device_get_current_action
(
dev
)
==
FPI_DEVICE_ACTION_NONE
)
{
fpi_ssm_mark_completed
(
transfer
->
ssm
);
return
;
}
/* check for cancellation */
if
(
fpi_device_action_is_cancelled
(
dev
))
{
...
...
@@ -1486,11 +1492,12 @@ elanspi_fp_capture_ssm_handler (FpiSsm *ssm, FpDevice *dev)
if
(
self
->
deactivating
)
{
fp_dbg
(
"<capture> got deactivate; exiting"
);
self
->
deactivating
=
FALSE
;
fpi_ssm_mark_completed
(
ssm
);
/* mark deactivate done */
fpi_image_device_deactivate_complete
(
FP_IMAGE_DEVICE
(
dev
),
NULL
);
self
->
deactivating
=
FALSE
;
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment