wwan: clear idle source id when the callback runs

Fixes: f0996d0eb8
This commit is contained in:
Beniamino Galvani 2017-12-20 14:28:05 +01:00
parent ec32edb21f
commit 5d372fd30e

View file

@ -881,6 +881,8 @@ static_stage3_ip4_done (NMModemBroadband *self)
g_assert (self->_priv.ipv4_config);
g_assert (self->_priv.bearer);
self->_priv.idle_id_ip4 = 0;
_LOGI ("IPv4 static configuration:");
/* Fully fail if invalid IP address retrieved */
@ -986,6 +988,7 @@ stage3_ip6_done (NMModemBroadband *self)
g_assert (self->_priv.ipv6_config);
self->_priv.idle_id_ip6 = 0;
memset (&address, 0, sizeof (address));
ip_method = get_bearer_ip_method (self->_priv.ipv6_config);