File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -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)
You can’t perform that action at this time.
0 commit comments