diff --git a/src/config.rs b/src/config.rs index 04308341f..f25140c82 100644 --- a/src/config.rs +++ b/src/config.rs @@ -817,8 +817,9 @@ impl Context { Ok(()) }) .await?; - send_sync_transports(self).await?; + // Invalidate the cache so the sync message cannot read a stale primary address. self.sql.uncache_raw_config("configured_addr").await; + send_sync_transports(self).await?; } } _ => {