X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fgraph.c;h=b18d06105660aa0196bb35b0211bf6e2cde156c8;hb=8c5bd53b91c720acf34d770e0f09d2b207b068eb;hp=2453d6f1c21f52414be0f0d849f54b5130300354;hpb=ae1d95cee66f3e5c6475f03b441d455e436e9ee8;p=meshlink diff --git a/src/graph.c b/src/graph.c index 2453d6f1..b18d0610 100644 --- a/src/graph.c +++ b/src/graph.c @@ -223,8 +223,7 @@ static void check_reachability(meshlink_handle_t *mesh) { timeout_del(&mesh->loop, &n->mtutimeout); - if(mesh->node_status_cb) - mesh->node_status_cb(mesh, (meshlink_node_t *)n, n->status.reachable); + update_node_status(mesh, n); if(!n->status.reachable) { update_node_udp(mesh, n, NULL);