mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-27 10:30:40 +01:00
bluetooth: requery default adapter when Bluez actually starts
This commit is contained in:
parent
e8d2942320
commit
958024cb68
1 changed files with 4 additions and 2 deletions
|
|
@ -251,11 +251,13 @@ name_owner_changed_cb (NMDBusManager *dbus_mgr,
|
|||
gboolean old_owner_good = (old_owner && strlen (old_owner));
|
||||
gboolean new_owner_good = (new_owner && strlen (new_owner));
|
||||
|
||||
/* Can't handle the signal if its not from the supplicant service */
|
||||
/* Can't handle the signal if its not from the Bluez */
|
||||
if (strcmp (BLUEZ_SERVICE, name))
|
||||
return;
|
||||
|
||||
if (old_owner_good && !new_owner_good)
|
||||
if (!old_owner_good && new_owner_good)
|
||||
query_default_adapter (self);
|
||||
else if (old_owner_good && !new_owner_good)
|
||||
remove_all_devices (self, TRUE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue