From: Lars Op den Kamp Date: Sun, 30 Oct 2011 16:42:08 +0000 (+0100) Subject: cec: fixec - don't deadlock when a command wasn't sent X-Git-Tag: upstream/2.2.0~1^2~160 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e4613795644dcebc6601fe65b148f05f97ad48e2;p=deb_libcec.git cec: fixec - don't deadlock when a command wasn't sent --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 4036fbe..e3f7517 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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");