cec: check if the processor thread is marked as initialised, not if the thread is...
[deb_libcec.git] / src / lib / implementations / ANCommandHandler.cpp
index ed4218ea96e36a9553ccf45a7beb97f3118ae6ee..7c2d05906d7b4a33550edb0eb55cbfcdd129268f 100644 (file)
@@ -50,7 +50,7 @@ CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) :
 
 bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
 {
-  if (m_processor->IsRunning() && command.parameters.size > 0)
+  if (m_processor->CECInitialised() && command.parameters.size > 0)
   {
     CCECClient *client = m_processor->GetClient(command.destination);