Don't send duplicate payloads over unicast

This commit is contained in:
Jeremy Lakeman 2012-10-18 10:55:53 +10:30
parent 95843e1f20
commit bb973e764e

View File

@ -1186,7 +1186,8 @@ overlay_stuff_packet(struct outgoing_packet *packet, overlay_txqueue *queue, tim
}
}else{
frame->send_copies --;
if (frame->send_copies>0)
// ignore resend logic for unicast packets, where wifi gives better resilience
if (frame->send_copies>0 && !packet->unicast)
keep_payload=1;
}