From 8af19c3f0cf0950f8a9bcc664448817e443d07ad Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Tue, 27 Dec 2016 22:46:57 -0500 Subject: Fix bug with config reloading The reloaded config was not used immediately. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 64fa5991..aceb9659 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,9 +133,9 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box> { let config_updated = config_monitor.as_ref() .and_then(|monitor| monitor.pending_config()) .map(|new_config| { + config = new_config; display.update_config(&config); processor.update_config(&config); - config = new_config; true }).unwrap_or(false); -- cgit v1.2.3-54-g00ecf