diff --git a/src/config.rs b/src/config.rs index d7baaabff..86799d164 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1573,6 +1573,9 @@ impl Config { // This matches historical behavior, but may need revisiting in a separate PR. pub fn set(cfg: Config) -> bool { let mut lock = CONFIG.write().unwrap(); + if *lock == cfg { + return false; + } *lock = cfg; lock.store(); // Drop CONFIG lock before acquiring KEY_PAIR lock to avoid potential deadlock.