diff --git a/port.c b/port.c index 10e9a03..223f627 100644 --- a/port.c +++ b/port.c @@ -1141,13 +1141,13 @@ struct foreign_clock *port_compute_best(struct port *p) if (!tmp) continue; + announce_to_dataset(tmp, p->clock, &fc->dataset); + fc_prune(fc); if (fc->n_messages < FOREIGN_MASTER_THRESHOLD) continue; - announce_to_dataset(tmp, p->clock, &fc->dataset); - if (!p->best) p->best = fc; else if (dscmp(&fc->dataset, &p->best->dataset) > 0)