always poll a device when the status is unknown, and don't try to determine whether...
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 8 Mar 2013 12:31:57 +0000 (13:31 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 8 Mar 2013 12:52:00 +0000 (13:52 +0100)
src/lib/devices/CECBusDevice.cpp

index 4d9c56a2f380d87ebcf774f410c903eda26d42ee..e249a0b3c45dda279bc73182ce48dce7b26b396c 100644 (file)
@@ -781,7 +781,7 @@ cec_bus_device_status CCECBusDevice::GetStatus(bool bForcePoll /* = false */, bo
   if (bNeedsPoll)
   {
     bool bPollAcked(false);
-    if (bNeedsPoll && NeedsPoll())
+    if (bNeedsPoll)
       bPollAcked = m_processor->PollDevice(m_iLogicalAddress);
 
     status = bPollAcked ? CEC_DEVICE_STATUS_PRESENT : CEC_DEVICE_STATUS_NOT_PRESENT;