Fix a bug in identifier waited
This commit is contained in:
parent
94e3ae872f
commit
aed1bea991
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ void rr_pkt_register(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo,
|
|||
if (timeout <= 0) timeout = 0;
|
||||
int idx_waited = (bp->ip.ap.str.id - 1) % PACKET_BUFFER_SIZE;
|
||||
rr->wait[idx_waited].on = 1;
|
||||
rr->wait[idx_waited].id = bp->ip.ap.str.id;
|
||||
rr->wait[idx_waited].id = bp->ip.ap.str.id - 1;
|
||||
rr->wait[idx_waited].link_num = bp->ip.ap.str.prevlink;
|
||||
rr->wait[idx_waited].timer_fd = set_timeout(ctx, timeout, &rr->wait[idx_waited]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue