From e7065dba6aef4b0907db609121096e3687a1d4bd Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Mon, 26 Mar 2012 16:25:00 +0200 Subject: [PATCH] cec: return false from CUSBCECAdapterCommunication::Open() when no thread could be created --- src/lib/adapter/USBCECAdapterCommunication.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/adapter/USBCECAdapterCommunication.cpp b/src/lib/adapter/USBCECAdapterCommunication.cpp index ac66d04..8f3bb7f 100644 --- a/src/lib/adapter/USBCECAdapterCommunication.cpp +++ b/src/lib/adapter/USBCECAdapterCommunication.cpp @@ -216,6 +216,7 @@ bool CUSBCECAdapterCommunication::Open(IAdapterCommunicationCallback *cb, uint32 delete m_port; m_port = NULL; CLibCEC::AddLog(CEC_LOG_ERROR, "could not create a communication thread"); + return false; } } else -- 2.34.1