Fix timer logic

This commit is contained in:
Quentin Dufour 2019-03-20 09:08:32 +01:00
parent 1530209b22
commit cbf7e0883a

View file

@ -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;
rr_pkt_unroll (ctx, app_ctx);
while (ring_lt(rr->recv_id, pkt->id)) {
rr->recv_id++;
rr_pkt_unroll (ctx, app_ctx);
}
return 1;
}