X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=70d65731d1b78d886a100cfff7cc29bf5f980802;hb=0356efecb6385b59a69bea220057396d6daa30bc;hp=8f601c2170f7db497df4e375907f058b9c41ea25;hpb=bd451cfe1512fa69eac35a60dbe6df17bfc39154;p=tinc diff --git a/src/graph.c b/src/graph.c index 8f601c21..70d65731 100644 --- a/src/graph.c +++ b/src/graph.c @@ -275,13 +275,6 @@ static void check_reachability(void) { update_node_udp(n, NULL); memset(&n->status, 0, sizeof n->status); n->options = 0; - } else if(n->connection) { - if(n->status.sptps) { - if(n->connection->outgoing) - send_req_key(n); - } else { - send_ans_key(n); - } } } @@ -292,7 +285,7 @@ static void check_reachability(void) { if (device_standby) { if (reachable_count == 0 && became_unreachable_count > 0) device_disable(); - else if (reachable_count == became_reachable_count) + else if (reachable_count > 0 && reachable_count == became_reachable_count) device_enable(); } }