Try to fix timers

This commit is contained in:
Quentin 2019-03-19 21:21:00 +01:00
parent aed1bea991
commit cd7f12aee0

View file

@ -370,10 +370,10 @@ int rr_on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) {
struct waited_pkt* pkt = fdinfo->other; struct waited_pkt* pkt = fdinfo->other;
evt_core_rm_fd(ctx, fdinfo->fd); evt_core_rm_fd(ctx, fdinfo->fd);
pkt->on = 0;
if (ring_lt(pkt->id, rr->recv_id)) return 1; if (ring_lt(pkt->id, rr->recv_id)) return 1;
printf("Timer reached for packet %d\n", pkt->id); printf("Timer reached for packet %d\n", pkt->id);
pkt->on = 0;
//rr->remote_links &= 0xffff ^ 1 << pkt->link_num; //rr->remote_links &= 0xffff ^ 1 << pkt->link_num;
rr->recv_id = pkt->id; rr->recv_id = pkt->id;