X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fgraph.c;h=8e39b98d62f7e0c0167ad36b4fa697c2e7864cd2;hp=19a33e2e9de1485cd1d7a462168ff288bbf2e49b;hb=cb8aedb0d1da7fc93299d8fd5005b9631364b7ee;hpb=269c5eaed0f3333f014e04835a304bdfa9275e53 diff --git a/src/graph.c b/src/graph.c index 19a33e2e..8e39b98d 100644 --- a/src/graph.c +++ b/src/graph.c @@ -237,10 +237,13 @@ static void check_reachability(meshlink_handle_t *mesh) { update_node_udp(mesh, n, NULL); n->status.broadcast = false; n->options = 0; + utcp_offline(n->utcp, true); } else if(n->connection) { if(n->connection->outgoing) { send_req_key(mesh, n); } + + utcp_offline(n->utcp, false); } } }