mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Make possible client vanished race testable using critical
The tests cannot currently parse the logs of fprintd. This means we need to rely on fprintd aborting when a condition is hit that needs to be tested. This makes certain possible races when clients vanish testable.
This commit is contained in:
@ -643,7 +643,7 @@ _fprint_device_client_vanished (GDBusConnection *connection,
|
||||
/* The session may have disappeared at this point if the device
|
||||
* was already closing. */
|
||||
if (session && !fp_device_close_sync (priv->dev, NULL, &error))
|
||||
g_debug ("Error closing device after disconnect: %s", error->message);
|
||||
g_critical ("Error closing device after disconnect: %s", error->message);
|
||||
|
||||
session_data_set_new (priv, NULL, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user