mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-21 08:50:47 +02:00
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:
parent
86dd400049
commit
3a30ea9fc6
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue