From c6fc73e1fac31b09a367414c64462d96123e4467 Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Tue, 27 Mar 2012 16:43:48 -0400 Subject: [PATCH] attrib: Attempt to remove attio callback on watcher exit When registering a watcher, it is attempted to add an attio callback. Therefore, when the watcher is unregistered or exits, this attio should be removed if there are no other users. This is already done when unregistering a watcher, it just missed when it exits without unregistering. --- attrib/client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/attrib/client.c b/attrib/client.c index 1455c3106..9efcec94a 100644 --- a/attrib/client.c +++ b/attrib/client.c @@ -227,6 +227,7 @@ static void watcher_exit(DBusConnection *conn, void *user_data) DBG("%s watcher %s exited", gatt->path, watcher->name); gatt->watchers = g_slist_remove(gatt->watchers, watcher); + remove_attio(gatt); } static int characteristic_set_value(struct characteristic *chr, -- 2.47.3