summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2014-07-03 18:21:29 -0500
committerDan Williams <dcbw@redhat.com>2014-07-03 18:50:50 -0500
commit275eea195d6636f6b5b974ac710516a1cd55e0b0 (patch)
tree12e3c5558326d7b9b21bd23a53fe5a272f1233da
parenta949c38d8e247d16ec99f14c53b2781e71de6dcf (diff)
downloadNetworkManager-275eea195d6636f6b5b974ac710516a1cd55e0b0.tar.gz
bluez: suppress warning when already disconnected
-rw-r--r--src/devices/bluetooth/nm-bluez-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c
index f493b77bcb..8434d0c96e 100644
--- a/src/devices/bluetooth/nm-bluez-device.c
+++ b/src/devices/bluetooth/nm-bluez-device.c
@@ -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);