diff --git a/core/net/rime/tree.c b/core/net/rime/tree.c index 47051ff31..cd47ab0ee 100644 --- a/core/net/rime/tree.c +++ b/core/net/rime/tree.c @@ -33,7 +33,7 @@ * * This file is part of the Contiki operating system. * - * $Id: tree.c,v 1.15 2007/11/17 18:05:21 adamdunkels Exp $ + * $Id: tree.c,v 1.16 2007/11/26 23:31:44 adamdunkels Exp $ */ /** @@ -249,9 +249,7 @@ adv_received(struct nbh_conn *c, rimeaddr_t *from, uint16_t rtmetric) n = neighbor_find(from); if(n == NULL) { - if(rtmetric < tc->local_rtmetric) { - neighbor_add(from, rtmetric, 1); - } + neighbor_add(from, rtmetric, 1); } else { neighbor_update(n, rtmetric); PRINTF("%d.%d: updating neighbor %d.%d, etx %d, hops %d\n",