packet_queue: wrap sequence number in packet_queue_delete()
This commit is contained in:
parent
ac0fb54623
commit
bfe1cce6e3
|
@ -65,6 +65,7 @@ void packet_queue_delete(packet_queue_t *q, size_t count)
|
|||
entry->data_len = 0;
|
||||
|
||||
q->read_idx++;
|
||||
q->read_idx %= PACKET_QUEUE_SIZE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue