diff --git a/src/daemon/scheduler.rs b/src/daemon/scheduler.rs index 3097b92dd..7bd6c2782 100644 --- a/src/daemon/scheduler.rs +++ b/src/daemon/scheduler.rs @@ -273,9 +273,15 @@ impl Scheduler { self.tasks .schedule_missing(Task::RenewObjectsIfNeeded, now()) .map_err(FatalError)?; - self.tasks - .schedule_missing(Task::RefreshAnnouncementsInfo, now()) - .map_err(FatalError)?; + + // BGP announcement info is only kept in-memory, so it + // is lost after a restart, so schedule refreshing this + // immediately. + if self.config.bgp_risdumps_enabled { + self.tasks + .schedule(Task::RefreshAnnouncementsInfo, now()) + .map_err(FatalError)?; + } #[cfg(feature = "multi-user")] self.tasks