Fix bug with config reloading

The reloaded config was not used immediately.
This commit is contained in:
Joe Wilm 2016-12-27 22:46:57 -05:00
parent ae470bf68b
commit 8af19c3f0c
1 changed files with 1 additions and 1 deletions

View File

@ -133,9 +133,9 @@ fn run(mut config: Config, options: cli::Options) -> Result<(), Box<Error>> {
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);