mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-05-07 12:18:04 +02:00
context: Disconnect removed signal handlers on first callback
This signal should happen just once, but ignore any further signal on first callback.
This commit is contained in:
parent
dc8b05f0a3
commit
3b783b9985
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ remove_device (FpContext *context, FpDevice *device)
|
|||
static void
|
||||
device_remove_on_notify_open_cb (FpContext *context, GParamSpec *pspec, FpDevice *device)
|
||||
{
|
||||
g_signal_handlers_disconnect_by_func (device, device_remove_on_notify_open_cb, context);
|
||||
remove_device (context, device);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue