cec: don't read without a timeout in CUSBCECAdapterCommunication::Process()
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index fc64c761c8f5352710c218313b1d8b2196f9d15a..e9d4d9333e399430a008b72ccf779bc3d3117f86 100644 (file)
@@ -229,7 +229,7 @@ void *CUSBCECAdapterCommunication::Process(void)
   {
     {
       CLockObject lock(m_mutex);
-      bCommandReceived = m_callback && Read(command, 0) && m_bInitialised;
+      bCommandReceived = m_callback && Read(command, 50) && m_bInitialised;
     }
 
     /* push the next command to the callback method if there is one */