device: Fix verify-disconnected state name

Respect protocol, and use proper name
This commit is contained in:
Marco Trevisan (Treviño)
2020-02-11 23:00:25 +01:00
committed by Bastien Nocera
parent efac52d94f
commit 5e9624bef5

View File

@ -344,7 +344,7 @@ verify_result_to_name (gboolean match, GError *error)
* Are drivers/libfprint/fprintd really in agreement here?
*/
if (g_error_matches (error, FP_DEVICE_ERROR, FP_DEVICE_ERROR_PROTO))
return "verify-disconnect";
return "verify-disconnected";
else if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
return "verify-no-match";