From cd7f12aee09c8680e712b6feaf083831999fe4d8 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 19 Mar 2019 21:21:00 +0100 Subject: [PATCH] Try to fix timers --- src/algo_rr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;