rpi: don't wait for a response (and fail) when opening a connection. issue #109
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 22 Jan 2013 00:59:10 +0000 (01:59 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 22 Jan 2013 00:59:10 +0000 (01:59 +0100)
src/lib/adapter/RPi/RPiCECAdapterCommunication.cpp

index 8084b780a15bf8c62756f74d217662995aaad95e..66c72c6b22a1793580354fa10b62a4ee4e74547b 100644 (file)
@@ -275,13 +275,8 @@ bool CRPiCECAdapterCommunication::Open(uint32_t iTimeoutMs /* = CEC_DEFAULT_CONN
     // register the callback
     vc_cec_register_callback(((CECSERVICE_CALLBACK_T)rpi_cec_callback), (void*)this);
 
-    // release previous LA
+    // release previous LA, but don't wait for a response
     vc_cec_release_logical_address();
-    if (!m_logicalAddressCondition.Wait(m_mutex, m_bLogicalAddressChanged, iTimeoutMs))
-    {
-      LIB_CEC->AddLog(CEC_LOG_ERROR, "failed to release the previous LA");
-      return false;
-    }
 
     // register LA "freeuse"
     if (RegisterLogicalAddress(CECDEVICE_FREEUSE))