From 910ccc214daf1b1d74d768daa93b42196366e5b6 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 4 Dec 2019 16:15:41 -0800 Subject: 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. --- host/lib/utils/prefs.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'host/lib/utils') 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."); } -- cgit v1.2.3