cec: fix 104125dc8316fb58253c34f417ded1e85b22c9f8
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 9f9c882336e6ebcd16046600255fe880169a8058..8c1895894253e0d5e2210da3d9b1e78bf5797205 100644 (file)
@@ -962,8 +962,8 @@ bool CCECCommandHandler::Transmit(cec_command &command, bool bExpectResponse /*
         CLibCEC::AddLog(CEC_LOG_DEBUG, "command transmitted");
         if (bExpectResponse)
           bReturn = m_condition.Wait(m_receiveMutex, m_bRcvSignal, m_iTransmitWait);
-        if (bReturn)
-          m_bRcvSignal = false;
+        m_bRcvSignal = false;
+        CLibCEC::AddLog(CEC_LOG_DEBUG, bReturn ? "expected response received" : "expected response not received");
       }
     }
   }