diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index b28612922f..42ca87679f 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -2270,8 +2270,9 @@ int bgp_process_packet(struct thread *thread) { // more work to do, come back later if (peer->ibuf->count > 0) - thread_add_event(bm->master, bgp_process_packet, - peer, 0, NULL); + thread_add_timer_msec( + bm->master, bgp_process_packet, peer, 0, + &peer->t_process_packet); } pthread_mutex_unlock(&peer->io_mtx); }