From d9ca2974222c53a47a44fabc933763c0de1973f1 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 3 Jul 2014 18:21:29 -0500 Subject: [PATCH] bluez: suppress warning when already disconnected (cherry picked from commit 275eea195d6636f6b5b974ac710516a1cd55e0b0) --- src/devices/bluetooth/nm-bluez-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c index 76005a3c42..4c448a3763 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);