Commit 291ef44e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make sure to send triggered update in update_route_metric.

parent 7aee11a7
......@@ -271,11 +271,9 @@ update_route_metric(struct route *route)
better_route = find_best_route(route->dest);
if(better_route && better_route->metric <= route->metric - 96)
consider_route(better_route);
else
send_triggered_update(route, oldmetric);
} else {
send_triggered_update(route, oldmetric);
}
if(route->installed)
send_triggered_update(route, oldmetric);
} else if(newmetric < oldmetric) {
consider_route(route);
}
......
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