cec: check if the processor thread is marked as initialised, not if the thread is...
[deb_libcec.git] / src / lib / LibCEC.cpp
index 5f22f9a88ebc1312858806e0b02ee187a3e537e4..9eaf9cecf898af75c3a1e4c34edbc92122fc0da3 100644 (file)
@@ -915,7 +915,7 @@ CCECClient *CLibCEC::RegisterClient(libcec_configuration &configuration)
     m_client = newClient;
 
   // register the new client
-  if (m_cec->IsRunning())
+  if (m_cec->CECInitialised())
     m_cec->RegisterClient(newClient);
 
   return newClient;