cec: don't send an updated configuration when the connection failed
authorLars Op den Kamp <lars@opdenkamp.eu>
Sun, 19 Feb 2012 01:18:11 +0000 (02:18 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Sun, 19 Feb 2012 01:20:40 +0000 (02:20 +0100)
src/lib/CECProcessor.cpp

index 9fc11fdf30c3b97f16469e256e7339bd510d03c6..63009a87202617066ab8ef96227a83381d6790b2 100644 (file)
@@ -252,7 +252,8 @@ bool CCECProcessor::Initialise(void)
     m_busDevices[m_logicalAddresses.primary]->ActivateSource();
 
   SetInitialised(bReturn);
-  CLibCEC::ConfigurationChanged(m_configuration);
+  if (bReturn)
+    CLibCEC::ConfigurationChanged(m_configuration);
 
   return bReturn;
 }