cec: return false from CUSBCECAdapterCommunication::Open() when no thread could be...
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 26 Mar 2012 14:25:00 +0000 (16:25 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 26 Mar 2012 14:25:00 +0000 (16:25 +0200)
src/lib/adapter/USBCECAdapterCommunication.cpp

index ac66d04423087c795a3fa25fe0b4eeba8e9e2b1b..8f3bb7f0bef62dde35165454f35b4c13061ee122 100644 (file)
@@ -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