From: Lars Op den Kamp Date: Sun, 19 Feb 2012 01:18:11 +0000 (+0100) Subject: cec: don't send an updated configuration when the connection failed X-Git-Tag: upstream/2.2.0~1^2~35^2~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ba73be2f178539d2dd9c289c1b54f3b1e3db50c3;p=deb_libcec.git cec: don't send an updated configuration when the connection failed --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 9fc11fd..63009a8 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -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; }