mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Emit VerifyFingerSelected after the method returned
In order to be race free, clients need to ignore all signals until after the DBus method to start verification has returned. So the signal must be emitted later than it currently is.
This commit is contained in:
@ -1214,13 +1214,13 @@ static gboolean fprint_device_verify_start (FprintDBusDevice *dbus_dev,
|
|||||||
(GAsyncReadyCallback) verify_cb, rdev);
|
(GAsyncReadyCallback) verify_cb, rdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprint_dbus_device_complete_verify_start (dbus_dev, invocation);
|
||||||
|
|
||||||
/* Emit VerifyFingerSelected telling the front-end which finger
|
/* Emit VerifyFingerSelected telling the front-end which finger
|
||||||
* we selected for auth */
|
* we selected for auth */
|
||||||
g_signal_emit(rdev, signals[SIGNAL_VERIFY_FINGER_SELECTED],
|
g_signal_emit(rdev, signals[SIGNAL_VERIFY_FINGER_SELECTED],
|
||||||
0, finger_num_to_name (finger_num));
|
0, finger_num_to_name (finger_num));
|
||||||
|
|
||||||
fprint_dbus_device_complete_verify_start (dbus_dev, invocation);
|
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user