diff options
author | Dan Williams <dcbw@redhat.com> | 2014-10-28 09:57:05 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2014-12-11 10:07:41 -0600 |
commit | 937f69ecc1bc3a3dfe63ce15aa935f0d93acb1af (patch) | |
tree | 33df91b2a89675b3c0eddc7ba997c13a3414e0db | |
parent | 9f8c88928d3151ffd5cb77f992fc81140cd709db (diff) | |
download | NetworkManager-937f69ecc1bc3a3dfe63ce15aa935f0d93acb1af.tar.gz |
fixup! core: add class function for device unrealization
-rw-r--r-- | src/devices/nm-device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 64e925a7fc..0cfab58981 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1525,7 +1525,10 @@ nm_device_unrealize (NMDevice *self, gboolean remove_resources, GError **error) if (NM_DEVICE_GET_CLASS (self)->unrealize) success = NM_DEVICE_GET_CLASS (self)->unrealize (self, remove_resources, error); - priv->ifindex = 0; + if (priv->ifindex > 0) { + priv->ifindex = 0; + g_object_notify (G_OBJECT (self), NM_DEVICE_IFINDEX); + } priv->ip_ifindex = 0; if (priv->ip_iface) { g_clear_pointer (&priv->ip_iface, g_free); |