X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fgraph.c;h=f68cf008472870cdc3d85a6cd86d384e6e87d7d5;hb=fa90b359694a0b3aa967dec97b1286e0dd695a78;hp=c7401b6a6341e669f0dfc7c5535d74a15fc54de5;hpb=afea9096fa708b2a2e6e24c308c0f1a80eefa5cc;p=meshlink diff --git a/src/graph.c b/src/graph.c index c7401b6a..f68cf008 100644 --- a/src/graph.c +++ b/src/graph.c @@ -150,7 +150,7 @@ static void check_reachability(meshlink_handle_t *mesh) { n->session_id = n->prevedge->reverse->session_id; if(n->utcp) { - utcp_abort_all_connections(n->utcp); + utcp_reset_all_connections(n->utcp); } n->status.validkey = false; @@ -162,8 +162,6 @@ static void check_reachability(meshlink_handle_t *mesh) { n->maxmtu = MTU; n->minmtu = 0; n->mtuprobes = 0; - - timeout_del(&mesh->loop, &n->mtutimeout); } if(n->status.visited != n->status.reachable) { @@ -193,7 +191,7 @@ static void check_reachability(meshlink_handle_t *mesh) { n->minmtu = 0; n->mtuprobes = 0; - timeout_del(&mesh->loop, &n->mtutimeout); + timeout_del(&mesh->loop, &n->udp_ping_timeout); if(!n->status.blacklisted) { update_node_status(mesh, n);