summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_io.c')
-rw-r--r--bgpd/bgp_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c
index 7aa489e93..a696d9569 100644
--- a/bgpd/bgp_io.c
+++ b/bgpd/bgp_io.c
@@ -268,8 +268,8 @@ static int bgp_process_reads(struct thread *thread)
thread_add_read(fpt->master, bgp_process_reads, peer, peer->fd,
&peer->t_read);
if (added_pkt)
- thread_add_timer_msec(bm->master, bgp_process_packet,
- peer, 0, &peer->t_process_packet);
+ thread_add_event(bm->master, bgp_process_packet,
+ peer, 0, &peer->t_process_packet);
}
return 0;