mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
verify: Print message about verification start from callback
It seems that GLib may process multiple DBus signals in one mainloop iteration. This could cause messages to be re-ordered, which in turn caused a race condition in the CI that could trigger random failures.
This commit is contained in:
@ -160,8 +160,11 @@ verify_started_cb (GObject *obj,
|
||||
struct VerifyState *verify_state = user_data;
|
||||
|
||||
if (fprint_dbus_device_call_verify_start_finish (FPRINT_DBUS_DEVICE (obj), res, &verify_state->error))
|
||||
{
|
||||
g_print ("Verify started!\n");
|
||||
verify_state->started = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
proxy_signal_cb (GDBusProxy *proxy,
|
||||
@ -226,7 +229,6 @@ do_verify (FprintDBusDevice *dev)
|
||||
g_clear_error (&verify_state.error);
|
||||
exit (1);
|
||||
}
|
||||
g_print ("Verify started!\n");
|
||||
|
||||
/* VerifyStatus signals are processing, wait for completion. */
|
||||
while (!verify_state.completed)
|
||||
|
||||
Reference in New Issue
Block a user