[pulseaudio-discuss] [PATCH v5 01/39] bluetooth: Remove all devices and adapters when org.bluez goes away

jprvita at gmail.com jprvita at gmail.com
Tue Sep 24 15:45:21 PDT 2013


From: João Paulo Rechi Vita <jprvita at openbossa.org>

---
 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 63e3332..6196c11 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) {
-- 
1.8.3.1



More information about the pulseaudio-discuss mailing list