displayconfig: Change to non-blocking call in Init
Change to a non-blocking getService call during initialization. Change-Id: I145541340072271b1d59f56bcb9ec4bd803c9dd9 CRs-Fixed: 3407731
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user