diff --git a/src/algo_rr.c b/src/algo_rr.c index 2f7cc9a..f2ef452 100644 --- a/src/algo_rr.c +++ b/src/algo_rr.c @@ -370,10 +370,10 @@ int rr_on_timer(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo) { struct waited_pkt* pkt = fdinfo->other; evt_core_rm_fd(ctx, fdinfo->fd); + pkt->on = 0; if (ring_lt(pkt->id, rr->recv_id)) return 1; printf("Timer reached for packet %d\n", pkt->id); - pkt->on = 0; //rr->remote_links &= 0xffff ^ 1 << pkt->link_num; rr->recv_id = pkt->id;