From 44dbedbe3fa77a16ea7d5736f07e65d9e2c0b165 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 21 Nov 2021 12:06:19 +0100 Subject: BGP: End route refresh before another starts --- proto/bgp/bgp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index aac1f45c..b825f778 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -971,6 +971,9 @@ bgp_refresh_begin(struct bgp_channel *c) if (c->load_state == BFS_LOADING) { log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; } + if (c->load_state == BFS_REFRESHING) + channel_refresh_end(&c->c); + c->load_state = BFS_REFRESHING; channel_refresh_begin(&c->c); } -- cgit v1.2.3