Skip to content

Commit

Permalink
RDK-43052: Try to restore app in RDKShell::killWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianM27 committed Oct 3, 2023
1 parent b01f275 commit 6c15123
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions RDKShell/RDKShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,18 @@ namespace WPEFramework {
std::string mimeType;
getMimeType(client, mimeType);

#ifdef HIBERNATE_SUPPORT_ENABLED
// RDKShell::kill only destroys wayland display
// and hibernated app will not detect missing display.
// Wakeup app by getting its state
WPEFramework::Core::JSON::String stateString;
auto thunderPlugin = getThunderControllerClient(client);
if(thunderPlugin)
{
thunderPlugin->Get<WPEFramework::Core::JSON::String>(RDKSHELL_THUNDER_TIMEOUT, "state", stateString);
}
#endif

// Kill the display
result = kill(client);
if (!result)
Expand Down

0 comments on commit 6c15123

Please sign in to comment.