Fix timer logic
This commit is contained in:
parent
1530209b22
commit
cbf7e0883a
1 changed files with 4 additions and 3 deletions
|
@ -377,9 +377,10 @@ int rr_on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
|
|||
printf("Timer reached for packet %d\n", pkt->id);
|
||||
|
||||
//rr->remote_links &= 0xffff ^ 1 << pkt->link_num;
|
||||
rr->recv_id = pkt->id;
|
||||
|
||||
while (ring_lt(rr->recv_id, pkt->id)) {
|
||||
rr->recv_id++;
|
||||
rr_pkt_unroll (ctx, app_ctx);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue