From 6c15123d406472faa73dc984dfeba6c1ffbaf09d Mon Sep 17 00:00:00 2001 From: Adrian Muzyka Date: Tue, 29 Aug 2023 12:21:26 +0200 Subject: [PATCH] RDK-43052: Try to restore app in RDKShell::killWrapper --- RDKShell/RDKShell.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/RDKShell/RDKShell.cpp b/RDKShell/RDKShell.cpp index c333660209..6892cfab7d 100755 --- a/RDKShell/RDKShell.cpp +++ b/RDKShell/RDKShell.cpp @@ -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(RDKSHELL_THUNDER_TIMEOUT, "state", stateString); + } +#endif + // Kill the display result = kill(client); if (!result)