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();