Try to fix timers
This commit is contained in:
parent
aed1bea991
commit
cd7f12aee0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue