mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-05 11:10:31 +01:00
bluez: suppress warning when already disconnected
(cherry picked from commit 275eea195d)
This commit is contained in:
parent
dda3b176e4
commit
d9ca297422
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue