bluetooth: suppress another Bluez warning (rh #840580)
When Bluez can't be launched for some reason, like because it doesn't exist, ignore that.
This commit is contained in:
@@ -184,7 +184,8 @@ default_adapter_cb (DBusGProxy *proxy, DBusGProxyCall *call, gpointer user_data)
|
|||||||
DBUS_TYPE_G_OBJECT_PATH, &default_adapter,
|
DBUS_TYPE_G_OBJECT_PATH, &default_adapter,
|
||||||
G_TYPE_INVALID)) {
|
G_TYPE_INVALID)) {
|
||||||
/* Ignore "No such adapter" errors; just means bluetooth isn't active */
|
/* Ignore "No such adapter" errors; just means bluetooth isn't active */
|
||||||
if (!dbus_g_error_has_name (err, "org.bluez.Error.NoSuchAdapter")) {
|
if ( !dbus_g_error_has_name (err, "org.bluez.Error.NoSuchAdapter")
|
||||||
|
&& !g_error_matches (err, DBUS_GERROR, DBUS_GERROR_SERVICE_UNKNOWN)) {
|
||||||
nm_log_warn (LOGD_BT, "bluez error getting default adapter: %s",
|
nm_log_warn (LOGD_BT, "bluez error getting default adapter: %s",
|
||||||
err && err->message ? err->message : "(unknown)");
|
err && err->message ? err->message : "(unknown)");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user