mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Detect when a device is disconnected
Pretty hacky way to detect whether the device we're handling has been disconnected during a verify or enrollment. This should allow us to avoid users having to wait when somebody pulls the plug.
This commit is contained in:
committed by
Daniel Drake
parent
bbead87f58
commit
4ea1c48f9f
@ -100,7 +100,7 @@ static void find_finger(DBusGProxy *dev, const char *username)
|
||||
static void verify_result(GObject *object, const char *result, gboolean done, void *user_data)
|
||||
{
|
||||
gboolean *verify_completed = user_data;
|
||||
g_print("Verify result: %s\n", result);
|
||||
g_print("Verify result: %s (%s)\n", result, done ? "done" : "not done");
|
||||
if (done != FALSE)
|
||||
*verify_completed = TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user