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:
Marco Trevisan (Treviño)
2021-01-24 20:21:07 +01:00
parent d7431c9654
commit 157bcf0ff5

View File

@ -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);