From 1418462e2cb120bda41462f79ebb33a0bef20ce9 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Mon, 4 Oct 2021 06:21:44 -0400 Subject: [PATCH] Don't update self.last_current here --- libcitadel/src/realm/realms.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcitadel/src/realm/realms.rs b/libcitadel/src/realm/realms.rs index de93257..5f4a035 100644 --- a/libcitadel/src/realm/realms.rs +++ b/libcitadel/src/realm/realms.rs @@ -85,7 +85,6 @@ impl Realms { Ok( Realms { realms, manager, last_current: None }) } - fn all_realms(mark_active: bool) -> Result> { let mut v = Vec::new(); util::read_directory(Realms::BASE_PATH, |dent| { @@ -271,7 +270,6 @@ impl Realms { pub fn set_realm_current(&mut self, realm: &Realm) -> Result<()> { symlink::write(realm.run_path(), Self::current_realm_symlink(), true)?; - self.last_current = Some(realm.clone()); Ok(()) }