dbusconfiguration: Protect against partial config
A zone details config is also required along with a
zone configuration or we'll end up crashing. Check
for both.
Tested-by: Removed Zone Details Config and daemon halted
correctly.
Change-Id: Icf3775eb4130fcf2683e12b272fb2051b0eb809f
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/dbus/dbusconfiguration.cpp b/dbus/dbusconfiguration.cpp
index 9cf8177..9d62643 100644
--- a/dbus/dbusconfiguration.cpp
+++ b/dbus/dbusconfiguration.cpp
@@ -542,7 +542,7 @@
{
debugPrint();
}
- if (zoneConfig.empty())
+ if (zoneConfig.empty() || zoneDetailsConfig.empty())
{
std::cerr << "No fan zones, application pausing until reboot\n";
while (1)