Diff between 899894458448228aa3b7b59a3b27aa628df71397 and b574d91b864315da368b69eee3562acbc398fb87

Changed Files

File Additions Deletions Status
src/profile.c +3 -3 modified

Full Patch

diff --git a/src/profile.c b/src/profile.c
index 839607f..22c0797 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);
 	}
 }