From b574d91b864315da368b69eee3562acbc398fb87 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 26 Sep 2012 13:40:43 +0300 Subject: [PATCH] core: Fix order of calling Profile.Release --- src/profile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profile.c b/src/profile.c index 839607f07..22c0797ac 100644 --- a/src/profile.c +++ b/src/profile.c @@ -414,13 +414,13 @@ void btd_profile_cleanup(void) DBG("Releasing \"%s\"", ext->name); + g_dbus_remove_watch(conn, ext->id); + remove_ext(ext); + msg = dbus_message_new_method_call(ext->owner, ext->path, "org.bluez.Profile", "Release"); if (msg) g_dbus_send_message(conn, msg); - - g_dbus_remove_watch(conn, ext->id); - remove_ext(ext); } } -- 2.47.3