X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2FCECProcessor.cpp;h=3fb3bc299a3a5782fb2699293a4b982b12ad5e60;hb=cd505625984870e36f98323209d3c2d7273e3266;hp=277009b83a9621de3a645d78ab195a7f9f03eb34;hpb=8b0ee2cc959ab9d0b30c21615c25f6447d1f8566;p=deb_libcec.git diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 277009b..3fb3bc2 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -223,17 +223,17 @@ bool CCECProcessor::Transmit(const cec_command &data) return bReturn; } } - } - if (data.ack_timeout > 0) - { - bool bError(false); - if ((bReturn = WaitForAck(&bError, output->size(), data.ack_timeout)) == false) - m_controller->AddLog(CEC_LOG_ERROR, "did not receive ack"); - } - else - { - bReturn = true; + if (data.ack_timeout > 0) + { + bool bError(false); + if ((bReturn = WaitForAck(&bError, output->size(), data.ack_timeout)) == false) + m_controller->AddLog(CEC_LOG_ERROR, "did not receive ack"); + } + else + { + bReturn = true; + } } return bReturn;