From: Lars Op den Kamp Date: Mon, 26 Mar 2012 14:25:00 +0000 (+0200) Subject: cec: return false from CUSBCECAdapterCommunication::Open() when no thread could be... X-Git-Tag: upstream/2.2.0~1^2~31^2~47^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e7065dba6aef4b0907db609121096e3687a1d4bd;p=deb_libcec.git cec: return false from CUSBCECAdapterCommunication::Open() when no thread could be created --- 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