diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2018-08-03 10:54:17 +0200 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2018-08-03 17:25:55 +0200 |
commit | 8781d7bca7c1f52c91d37fb153a9239bdd1a2397 (patch) | |
tree | d565a504871f9f90afa4b3c524a79efe67b89fe4 | |
parent | d8b0ea165a1521f3480b7af21852967a244f77be (diff) | |
download | NetworkManager-bg/rh1542366.tar.gz |
device: clear queued IP config sources when the device is unrealizedbg/rh1542366
If the device is later realized again, we assert that there aren't any
IP config changes queued. Therefore, they must be cleared on
unrealize().
-rw-r--r-- | src/devices/nm-device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 60c0917250..69e99ac8c3 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -4271,6 +4271,9 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error) } } + nm_clear_g_source (&priv->queued_ip_config_id_4); + nm_clear_g_source (&priv->queued_ip_config_id_6); + g_object_freeze_notify (G_OBJECT (self)); NM_DEVICE_GET_CLASS (self)->unrealize_notify (self); |