Don't keep trying to send link states if the packet transmit queue is full

This commit is contained in:
Jeremy Lakeman 2013-06-19 14:19:27 +09:30
parent d95b728752
commit 297a30e3c9

View File

@ -638,8 +638,8 @@ static int send_neighbour_link(struct neighbour *n)
n->best_link->ack_sequence, n->best_link->ack_mask, -1);
if (overlay_payload_enqueue(frame))
op_free(frame);
else
n->last_update = now;
n->last_update = now;
}
n->next_neighbour_update = n->last_update + n->best_link->interface->tick_ms;
n->ack_counter = ACK_WINDOW;