mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 12:23:34 +02:00
device: Check if the device is open if we didn't fail in claiming it
When claiming a device for delete operation we'd not get an error in case we can claim it but it's not already claimed, so in such case we should explicitly check that the device has been opened.
This commit is contained in:
@ -2146,7 +2146,7 @@ fprint_device_delete_enrolled_fingers (FprintDBusDevice *dbus_dev,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
opened = TRUE;
|
opened = fp_device_is_open (priv->dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
sender = g_dbus_method_invocation_get_sender (invocation);
|
sender = g_dbus_method_invocation_get_sender (invocation);
|
||||||
|
|||||||
Reference in New Issue
Block a user