mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 17:20:11 +01:00
default-route-manager: pick up platform changes after NMDevice
If a default route is configured externally, we want the device to pick the change and register it with the default-route-manager first. https://bugzilla.redhat.com/show_bug.cgi?id=1244483
This commit is contained in:
parent
bebeff69e8
commit
e67b52ed16
1 changed files with 3 additions and 1 deletions
|
|
@ -1290,7 +1290,9 @@ _resync_idle_reschedule (NMDefaultRouteManager *self)
|
|||
g_source_remove (priv->resync.idle_handle);
|
||||
else
|
||||
_LOGD (0, "resync: schedule on idle");
|
||||
priv->resync.idle_handle = g_idle_add ((GSourceFunc) _resync_idle_now, self);
|
||||
/* Schedule this at low priority so that on an external change to platform
|
||||
* a NMDevice has a chance to picks up the changes first. */
|
||||
priv->resync.idle_handle = g_idle_add_full (G_PRIORITY_LOW, (GSourceFunc) _resync_idle_now, self, NULL);
|
||||
} else if (!priv->resync.idle_handle) {
|
||||
priv->resync.idle_handle = g_timeout_add (priv->resync.backoff_wait_time_ms, (GSourceFunc) _resync_idle_now, self);
|
||||
_LOGD (0, "resync: schedule in %u.%03u seconds (%u)", priv->resync.backoff_wait_time_ms/1000,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue