displayconfig: Change to non-blocking call in Init
Change to a non-blocking getService call during initialization.
Change-Id: I145541340072271b1d59f56bcb9ec4bd803c9dd9
CRs-Fixed: 3407731
diff --git a/services/config/src/client_impl.cpp b/services/config/src/client_impl.cpp
index 68807a9..197af93 100644
--- a/services/config/src/client_impl.cpp
+++ b/services/config/src/client_impl.cpp
@@ -71,7 +71,7 @@
namespace DisplayConfig {
int ClientImpl::Init(std::string client_name, ConfigCallback *callback) {
- display_config_ = IDisplayConfig::getService();
+ display_config_ = IDisplayConfig::tryGetService();
// Unable to find Display Config 2.0 service. Fail Init.
if (!display_config_) {
return -1;