From a698b70d0f274f9f8abb9730d30309aa881fdcaf Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 24 Jun 2015 11:26:17 +0200 Subject: [PATCH] route-manager: process platform events before syncing routes Let's ensure we have a fresh platform cache before starting to sync. (cherry picked from commit c5c612d711e4477af84bb28566ed52f5968cdbb5) --- src/nm-route-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm-route-manager.c b/src/nm-route-manager.c index fcc204dff0..ac8ded374a 100644 --- a/src/nm-route-manager.c +++ b/src/nm-route-manager.c @@ -359,6 +359,8 @@ _vx_route_sync (const VTableIP *vtable, NMRouteManager *self, int ifindex, const const NMPlatformIPXRoute *cur_known_route, *cur_plat_route; NMPlatformIPXRoute *cur_ipx_route; + nm_platform_process_events (priv->platform); + ipx_routes = vtable->vt->is_ip4 ? &priv->ip4_routes : &priv->ip6_routes; plat_routes = vtable->vt->route_get_all (priv->platform, ifindex, NM_PLATFORM_GET_ROUTE_FLAGS_WITH_NON_DEFAULT); plat_routes_idx = _route_index_create (vtable, plat_routes);