bluetooth: Remove all devices and adapters when org.bluez goes away

This commit is contained in:
João Paulo Rechi Vita 2013-09-24 19:45:21 -03:00 committed by Tanu Kaskinen
parent 9be71b5838
commit c3efb24aa7

View file

@ -189,7 +189,8 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us
if (pa_streq(name, BLUEZ_SERVICE)) { if (pa_streq(name, BLUEZ_SERVICE)) {
if (old_owner && *old_owner) { if (old_owner && *old_owner) {
pa_log_debug("Bluetooth daemon disappeared"); pa_log_debug("Bluetooth daemon disappeared");
/* TODO: remove all devices */ device_remove_all(y);
adapter_remove_all(y);
} }
if (new_owner && *new_owner) { if (new_owner && *new_owner) {