X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fpmtu.c;h=36152cffec2af6d8d23a61f32d5a8fa7ffa202c9;hb=881a652713a6231ad31596b80b674986d0170868;hp=5220a737459f0cd061e844be7fd99b442ee5686f;hpb=fa90b359694a0b3aa967dec97b1286e0dd695a78;p=meshlink diff --git a/src/pmtu.c b/src/pmtu.c index 5220a737..36152cff 100644 --- a/src/pmtu.c +++ b/src/pmtu.c @@ -236,7 +236,10 @@ static void try_udp(meshlink_handle_t *mesh, node_t *n) { if(elapsed.tv_sec >= interval) { n->last_udp_probe_sent = mesh->loop.now; send_udp_probe_packet(mesh, n, MIN_PROBE_SIZE); - n->udpprobes--; + + if(n->status.udp_confirmed) { + n->udpprobes--; + } if(!n->status.udp_confirmed && n->prevedge) { n->status.broadcast = true;