diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-03-17 16:10:13 -0400 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-03-17 16:10:13 -0400 | 
| commit | e0d550dfea0ff72a2192e4193f3d67af5748859c (patch) | |
| tree | edba12cb5e31b5d428b29b1abd25f6bec4008644 /bgpd/bgp_io.c | |
| parent | a78a4e754edc486769419c4f7a86a20538052171 (diff) | |
bgpd: use add_event instead of add_timer with zero timeout
Just use events in a few places where timers with zero timeout
were being used.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'bgpd/bgp_io.c')
| -rw-r--r-- | bgpd/bgp_io.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_io.c b/bgpd/bgp_io.c index 7aa489e932..a696d95697 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;  | 
