aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-12-04 16:15:41 -0800
committerMartin Braun <martin.braun@ettus.com>2019-12-05 09:51:32 -0800
commit910ccc214daf1b1d74d768daa93b42196366e5b6 (patch)
tree04f221d3f7454bf1574ffe4d5f06c98e7f1d2502 /host
parente029ae60600e456f47cb72cbd833e3767ab5eaf7 (diff)
downloaduhd-910ccc214daf1b1d74d768daa93b42196366e5b6.tar.gz
uhd-910ccc214daf1b1d74d768daa93b42196366e5b6.tar.bz2
uhd-910ccc214daf1b1d74d768daa93b42196366e5b6.zip
prefs: Set init_done flag to true after loading config files
The prefs API is supposed to load the config files once, and stash them away for the process to consume at will. Because the init_done is never set, it will read the config files every time it's asked for them. This is usually not a problem, but it causes the logging output to be messy.
Diffstat (limited to 'host')
-rw-r--r--host/lib/utils/prefs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/utils/prefs.cpp b/host/lib/utils/prefs.cpp
index 5755ad4b4..ef920cf29 100644
--- a/host/lib/utils/prefs.cpp
+++ b/host/lib/utils/prefs.cpp
@@ -88,6 +88,7 @@ config_parser& uhd::prefs::get_uhd_config()
} catch (const std::exception &) {
// nop
}
+ init_done = true;
UHD_LOG_TRACE("PREFS", "Done initializing.");
}