mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-26 13:10:34 +01:00
bluetooth: ignore more Bluez launch failures
If bluez is started by systemd but for some reason is not set to be D-Bus activated (as seems to be the case on Fedora 16 and later), then don't emit a warning.
This commit is contained in:
parent
346a1dc957
commit
1f4b97c878
1 changed files with 1 additions and 0 deletions
|
|
@ -185,6 +185,7 @@ default_adapter_cb (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user_data)
|
|||
G_TYPE_INVALID)) {
|
||||
/* Ignore "No such adapter" errors; just means bluetooth isn't active */
|
||||
if ( !dbus_g_error_has_name (err, "org.bluez.Error.NoSuchAdapter")
|
||||
&& !dubs_g_error_has_name (err, "org.freedesktop.systemd1.LoadFailed")
|
||||
&& !g_error_matches (err, DBUS_GERROR, DBUS_GERROR_SERVICE_UNKNOWN)) {
|
||||
nm_log_warn (LOGD_BT, "bluez error getting default adapter: %s",
|
||||
err && err->message ? err->message : "(unknown)");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue