@@ -85,7 +85,7 @@ using namespace std;
85
85
86
86
#define API_VERSION_NUMBER_MAJOR 2
87
87
#define API_VERSION_NUMBER_MINOR 0
88
- #define API_VERSION_NUMBER_PATCH 0
88
+ #define API_VERSION_NUMBER_PATCH 1
89
89
90
90
static bool isCecEnabled = false ;
91
91
static bool isResCacheUpdated = false ;
@@ -582,7 +582,11 @@ namespace WPEFramework {
582
582
m_service = service;
583
583
m_service->AddRef ();
584
584
585
- m_sendMsgThread = std::thread (sendMsgThread);
585
+ try {
586
+ m_sendMsgThread = std::thread (sendMsgThread);
587
+ } catch (const std::system_error& e) {
588
+ LOGERR (" Failed to start m_sendMsgThread: %s" , e.what ());
589
+ }
586
590
m_timer.connect (std::bind (&DisplaySettings::onTimer, this ));
587
591
m_AudioDeviceDetectTimer.connect (std::bind (&DisplaySettings::checkAudioDeviceDetectionTimer, this ));
588
592
m_ArcDetectionTimer.connect (std::bind (&DisplaySettings::checkArcDeviceConnected, this ));
@@ -4755,7 +4759,12 @@ namespace WPEFramework {
4755
4759
try
4756
4760
{
4757
4761
LOGWARN (" creating worker thread for initAudioPortsWorker " );
4758
- std::thread audioPortInitThread = std::thread (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
+ }
4759
4768
audioPortInitThread.detach ();
4760
4769
}
4761
4770
catch (const std::system_error& e)
0 commit comments