From c3efb24aa75993a8c97cbcb4d1a8184142d17e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= Date: Tue, 24 Sep 2013 19:45:21 -0300 Subject: [PATCH] bluetooth: Remove all devices and adapters when org.bluez goes away --- src/modules/bluetooth/bluez5-util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 63e33328c..6196c11e8 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -189,7 +189,8 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us if (pa_streq(name, BLUEZ_SERVICE)) { if (old_owner && *old_owner) { pa_log_debug("Bluetooth daemon disappeared"); - /* TODO: remove all devices */ + device_remove_all(y); + adapter_remove_all(y); } if (new_owner && *new_owner) {