From 766b20a5c0ae887a612fa2e6c8d0dc3fff131c7a Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Mon, 13 Mar 2023 19:59:49 +0100 Subject: [PATCH] Fix CONFIGURATION static variable --- src/daemon/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/main.rs b/src/daemon/main.rs index 434af7e..e23ab05 100644 --- a/src/daemon/main.rs +++ b/src/daemon/main.rs @@ -32,7 +32,7 @@ use libcommand::interpreter::unix_server::UnixServer; async fn main() -> Result<(), Box> { std::fs::create_dir_all(Path::new(libcommand::SOCK_FILE).parent().unwrap())?; - *CONFIGURATION.get_mut().unwrap() = Some(configuration::Configuration::read_or_create()); + *CONFIGURATION.lock().unwrap() = Some(configuration::Configuration::read_or_create()); let server = server::DaemonServer::default();