Skip to content

Commit

Permalink
RDKTV-358 black screen fix after reboot (rdkcentral#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiess authored Nov 25, 2020
1 parent 3b588b0 commit d03c514
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion RDKShell/RDKShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1628,9 +1628,18 @@ namespace WPEFramework {
//check to see if plugin already exists
bool newPluginFound = false;
bool originalPluginFound = false;
uint32_t pluginsFound = 0;
{
Core::JSON::ArrayType<PluginHost::MetaData::Service> availablePluginResult;
uint32_t status = getThunderControllerClient()->Get<Core::JSON::ArrayType<PluginHost::MetaData::Service>>(2000, "status", availablePluginResult);
uint32_t status = getThunderControllerClient()->Get<Core::JSON::ArrayType<PluginHost::MetaData::Service>>(3500, "status", availablePluginResult);

std::cout << "status status: " << status << std::endl;
if (status > 0)
{
std::cout << "trying status one more time...\n";
status = getThunderControllerClient()->Get<Core::JSON::ArrayType<PluginHost::MetaData::Service>>(10000, "status", availablePluginResult);
std::cout << "status status: " << status << std::endl;
}

for (uint16_t i = 0; i < availablePluginResult.Length(); i++)
{
Expand All @@ -1647,10 +1656,12 @@ namespace WPEFramework {
originalPluginFound = true;
}
}
pluginsFound = availablePluginResult.Length();
}

if (!newPluginFound && !originalPluginFound)
{
std::cout << "number of types found: " << pluginsFound << std::endl;
response["message"] = "failed to launch application. type not found";
returnResponse(false);
}
Expand Down

0 comments on commit d03c514

Please sign in to comment.