From 3b783b9985492b80542d089a9207ebc1bfc81074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 22 Jun 2023 00:39:20 -0400 Subject: [PATCH] context: Disconnect removed signal handlers on first callback This signal should happen just once, but ignore any further signal on first callback. --- libfprint/fp-context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libfprint/fp-context.c b/libfprint/fp-context.c index 70d4062a..77234c04 100644 --- a/libfprint/fp-context.c +++ b/libfprint/fp-context.c @@ -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); }