bluez: suppress warning when already disconnected

(cherry picked from commit 275eea195d)
This commit is contained in:
Dan Williams 2014-07-03 18:21:29 -05:00
parent dda3b176e4
commit d9ca297422

View file

@ -406,7 +406,8 @@ bluez_disconnect_cb (GDBusConnection *dbus_connection,
variant = g_dbus_connection_call_finish (dbus_connection, res, &error);
if (!variant) {
nm_log_warn (LOGD_BT, "bluez[%s]: failed to disconnect: %s", priv->path, error->message);
if (!strstr (error->message, "org.bluez.Error.NotConnected"))
nm_log_warn (LOGD_BT, "bluez[%s]: failed to disconnect: %s", priv->path, error->message);
g_error_free (error);
} else
g_variant_unref (variant);