iwd: avoid duplicate nm_device_iwd_set_dbus_object call

Avoid calling nm_device_iwd_set_dbus_object (device, NULL) if the
dbus_object was NULL already.  Apparently gdbus guarantees that a
name-owner notification either has a NULL old owner or a NULL new owner
but can also have both old and new owner NULL.
This commit is contained in:
Andrew Zaborowski 2018-01-22 19:34:18 +01:00 committed by Thomas Haller
parent 86dd400049
commit 3a30ea9fc6

View file

@ -469,6 +469,9 @@ name_owner_changed (GObject *object, GParamSpec *pspec, gpointer user_data)
} else {
const GSList *devices, *iter;
if (!priv->running)
return;
priv->running = false;
devices = nm_manager_get_devices (priv->nm_manager);