]> git.ipfire.org Git - thirdparty/bird.git/blobdiff - sysdep/unix/krt.c
Merge branch 'master' into mq-filter-stack
[thirdparty/bird.git] / sysdep / unix / krt.c
index 2cec2caeb9778672edbe3ac137c0543cf2a644e3..27868fab61e15deb58513d0706a56c41d64e5b0f 100644 (file)
@@ -1129,7 +1129,7 @@ krt_shutdown(struct proto *P)
   krt_scan_timer_stop(p);
 
   /* FIXME we should flush routes even when persist during reconfiguration */
-  if (p->initialized && !KRT_CF->persist)
+  if (p->initialized && !KRT_CF->persist && (P->down_code != PDC_CMD_GR_DOWN))
     krt_flush_routes(p);
 
   p->ready = 0;