X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fgraph.c;h=19a33e2e9de1485cd1d7a462168ff288bbf2e49b;hb=56df3865362dee0ac42707e364365f6177fd3aa4;hp=a6e38e42ea914bda3cb913b902b84ca7a72b1388;hpb=b67296418c51784d39a24c3041e2cb199bee06f2;p=meshlink diff --git a/src/graph.c b/src/graph.c index a6e38e42..19a33e2e 100644 --- a/src/graph.c +++ b/src/graph.c @@ -229,11 +229,13 @@ static void check_reachability(meshlink_handle_t *mesh) { timeout_del(&mesh->loop, &n->mtutimeout); - update_node_status(mesh, n); + if(!n->status.blacklisted) { + update_node_status(mesh, n); + } if(!n->status.reachable) { update_node_udp(mesh, n, NULL); - memset(&n->status, 0, sizeof(n)->status); + n->status.broadcast = false; n->options = 0; } else if(n->connection) { if(n->connection->outgoing) {