cec: persist the configuration before closing the connection. only try to persist...
[deb_libcec.git] / src / lib / CECProcessor.cpp
index dee5f5949af2321acdfbb62a0682599014305d67..c1c999c34454d95e6f214a956f81ccc763287f8a 100644 (file)
@@ -150,6 +150,7 @@ void CCECProcessor::Close(void)
 
   if (bClose && m_communication)
   {
+    m_communication->PersistConfiguration(&m_configuration);
     m_communication->Close();
     delete m_communication;
     m_communication = NULL;