Commit 2c52e86a authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Ensure check_neighbours does call reset_txcost.

parent 71fadce4
...@@ -227,8 +227,8 @@ unsigned ...@@ -227,8 +227,8 @@ unsigned
check_neighbours() check_neighbours()
{ {
struct neighbour *neigh; struct neighbour *neigh;
int changed; int changed, rc;
unsigned msecs = 50000, delay; unsigned msecs = 50000;
debugf("Checking neighbours.\n"); debugf("Checking neighbours.\n");
...@@ -245,9 +245,8 @@ check_neighbours() ...@@ -245,9 +245,8 @@ check_neighbours()
continue; continue;
} }
delay = timeval_minus_msec(&now, &neigh->ihu_time); rc = reset_txcost(neigh);
changed = changed || rc;
changed = changed || reset_txcost(neigh);
if(changed) { if(changed) {
update_neighbour_metric(neigh); update_neighbour_metric(neigh);
......
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