From 3cf6b161375533fd585aeac0030a9b7428cc19db Mon Sep 17 00:00:00 2001 From: holger krekel Date: Fri, 31 Jul 2026 03:03:39 +0200 Subject: [PATCH] fix: invalidate configured_addr cache before sending transport sync message Uncaching only after send_sync_transports() could send the sync message from the old primary address, so other devices never switched. --- src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 124904646..2890b1687 100644 --- a/src/config.rs +++ b/src/config.rs @@ -814,8 +814,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?; } } _ => {