summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-11-21 12:06:19 +0100
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:44 +0100
commit44dbedbe3fa77a16ea7d5736f07e65d9e2c0b165 (patch)
treefa392bc55fca8a39261c3c1542f900192ea02eaa /proto/bgp/bgp.c
parent3fd1f46184aa74d8ab7ed65c9ab6954f7e49d309 (diff)
BGP: End route refresh before another starts
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c3
1 files changed, 3 insertions, 0 deletions
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);
}