cec: mark device status as present when a command was received from a device
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index 42aa02c6644b480c2c3e9b9f889423b1f42930fc..689ff870b8e1d8a73cdeda66e3d847d145f3d1f0 100644 (file)
@@ -83,6 +83,8 @@ bool CCECBusDevice::HandleCommand(const cec_command &command)
   CLockObject lock(&m_transmitMutex);
   m_iLastActive = GetTimeMs();
   m_handler->HandleCommand(command);
+  if (m_deviceStatus != CEC_DEVICE_STATUS_HANDLED_BY_LIBCEC)
+    m_deviceStatus = CEC_DEVICE_STATUS_PRESENT;
   m_condition.Signal();
   return true;
 }