Commit 8b247998 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't trigger route changes when the route didn't actually change.

parent f72c6496
......@@ -282,8 +282,10 @@ update_route_metric(struct route *route)
INFINITY);
}
change_route_metric(route, newmetric);
trigger_route_change(route, route->src, oldmetric);
if(newmetric != oldmetric) {
change_route_metric(route, newmetric);
trigger_route_change(route, route->src, oldmetric);
}
}
void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment