]> git.meshlink.io Git - meshlink/blobdiff - src/pmtu.c
Start sending UDP probes after a channel retransmit event.
[meshlink] / src / pmtu.c
index 5220a737459f0cd061e844be7fd99b442ee5686f..36152cffec2af6d8d23a61f32d5a8fa7ffa202c9 100644 (file)
@@ -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;