cec: fixec - don't deadlock when a command wasn't sent
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 30 Oct 2011 16:42:08 +0000 (17:42 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 30 Oct 2011 16:42:08 +0000 (17:42 +0100)
src/lib/CECProcessor.cpp

index 4036fbe81b6f37bac88d48f59a89df5960052f08..e3f75173f7ca619e184582e11bb6f9fe0792d3c2 100644 (file)
@@ -258,7 +258,7 @@ bool CCECProcessor::Transmit(const cec_command &data)
       return bReturn;
     else
     {
-      output->condition.Wait(&output->mutex);
+      output->condition.Wait(&output->mutex, 1000);
       if (output->state != ADAPTER_MESSAGE_STATE_SENT)
       {
         m_controller->AddLog(CEC_LOG_ERROR, "command was not sent");