Skip to content

Commit 26644f8

Browse files
committed
SERXIONE-6067: WPEFramework crash
Reason for change: Add try catch in DisplaySettings for thread creation Test Procedure: Risks: low Priority: P1 Signed-off-by:Hayden Gfeller [email protected]
1 parent 952f05a commit 26644f8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

DisplaySettings/DisplaySettings.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ using namespace std;
8585

8686
#define API_VERSION_NUMBER_MAJOR 2
8787
#define API_VERSION_NUMBER_MINOR 0
88-
#define API_VERSION_NUMBER_PATCH 1
88+
#define API_VERSION_NUMBER_PATCH 0
8989

9090
static bool isCecEnabled = false;
9191
static bool isResCacheUpdated = false;
@@ -4759,12 +4759,7 @@ namespace WPEFramework {
47594759
try
47604760
{
47614761
LOGWARN("creating worker thread for initAudioPortsWorker ");
4762-
std::thread audioPortInitThread;
4763-
try {
4764-
audioPortInitThread = std::thread(initAudioPortsWorker);
4765-
} catch (const std::system_error& e) {
4766-
LOGERR("Failed to start initAudioPortsWorker: %s", e.what());
4767-
}
4762+
std::thread audioPortInitThread = std::thread(initAudioPortsWorker);
47684763
audioPortInitThread.detach();
47694764
}
47704765
catch(const std::system_error& e)

0 commit comments

Comments
 (0)