cec: fix background polling and libcec exit
[deb_libcec.git] / src / lib / implementations / ANCommandHandler.cpp
index 3da959eb5939f61c2e1189cddac4abbe1d297bfc..e9674baafb22f84ca8f575d46e407884156cf8a4 100644 (file)
@@ -44,7 +44,7 @@ CANCommandHandler::CANCommandHandler(CCECBusDevice *busDevice) :
 
 bool CANCommandHandler::HandleVendorRemoteButtonDown(const cec_command &command)
 {
-  if (command.parameters.size > 0)
+  if (m_processor->IsStarted() && command.parameters.size > 0)
   {
     cec_keypress key;
     key.duration = CEC_BUTTON_TIMEOUT;