X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgraph.c;h=621dd9be3ae0246e316a7b96760a1d29fb5adb25;hb=bb6b97ce3493d49b79f1bd57fdac420c312ef8d6;hp=98eb469b447087884c52ec21e052192bee30c082;hpb=b99af2f813b897e1fd49c87a7cf44241cad3a017;p=tinc diff --git a/src/graph.c b/src/graph.c index 98eb469b..621dd9be 100644 --- a/src/graph.c +++ b/src/graph.c @@ -234,6 +234,10 @@ static void check_reachability(void) { /* TODO: only clear status.validkey if node is unreachable? */ n->status.validkey = false; + if(n->status.sptps) { + sptps_stop(&n->sptps); + n->status.waitingforkey = false; + } n->last_req_key = 0; n->maxmtu = MTU;