wwan: notify change of modem:data-port when clearing ip-iface

data-port returns ip-iface, if set. Clearing it,
most likely causes the property to change. Emit
a notification.
This commit is contained in:
Thomas Haller
2018-01-10 17:36:15 +01:00
parent 4fbea56b54
commit 8209e42106

View File

@@ -1138,7 +1138,8 @@ deactivate_cleanup (NMModem *self, NMDevice *device)
priv->ip6_method = NM_MODEM_IP_METHOD_UNKNOWN;
_set_ip_ifindex (self, -1);
nm_clear_g_free (&priv->ip_iface);
if (nm_clear_g_free (&priv->ip_iface))
_notify (self, PROP_DATA_PORT);
}
/*****************************************************************************/